summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-12-11 03:07:13 +0100
committerache <ache@ache.one>2023-12-11 03:07:13 +0100
commit0b56f4b0b96661b16b6fa4625db5484467bfcdd8 (patch)
tree28ea9b0fca81dfa3c41c677308fc6e5510de5bdc
parentSupport escap sequence in less (diff)
Timestamp init
-rw-r--r--functions/timestamp.fish4
1 files changed, 4 insertions, 0 deletions
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