diff options
author | ache <ache@ache.one> | 2023-12-11 03:07:13 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2023-12-11 03:07:13 +0100 |
commit | 0b56f4b0b96661b16b6fa4625db5484467bfcdd8 (patch) | |
tree | 28ea9b0fca81dfa3c41c677308fc6e5510de5bdc /functions | |
parent | Support escap sequence in less (diff) |
Timestamp init
Diffstat (limited to 'functions')
-rw-r--r-- | functions/timestamp.fish | 4 |
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 |