about summary refs log tree commit diff
path: root/users/riking/dotfiles/fish/functions
diff options
context:
space:
mode:
Diffstat (limited to 'users/riking/dotfiles/fish/functions')
-rw-r--r--users/riking/dotfiles/fish/functions/ddate.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/users/riking/dotfiles/fish/functions/ddate.fish b/users/riking/dotfiles/fish/functions/ddate.fish
new file mode 100644
index 000000000000..8152d31680e7
--- /dev/null
+++ b/users/riking/dotfiles/fish/functions/ddate.fish
@@ -0,0 +1,3 @@
+function ddate --description 'current date in Discourse format'
+    TZ=UTC date '+[date=%Y-%m-%d time=%H:%M:%S timezone=\"%Z\"]'
+end