summaryrefslogtreecommitdiff
path: root/functions/timestamp.fish
diff options
context:
space:
mode:
Diffstat (limited to 'functions/timestamp.fish')
-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