From 0b56f4b0b96661b16b6fa4625db5484467bfcdd8 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 11 Dec 2023 03:07:13 +0100 Subject: Timestamp init --- functions/timestamp.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 functions/timestamp.fish diff --git a/functions/timestamp.fish b/functions/timestamp.fish new file mode 100644 index 0000000..6ea08e2 --- /dev/null +++ b/functions/timestamp.fish @@ -0,0 +1,4 @@ +function timestamp --wraps "date" --description "Return current unix timestamp" + # The Unix timestamp is the number of seconds from 01 January 1970 (the unix epoch date) + date "%s" +end -- cgit v1.2.3