diff options
-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 |