about summary refs log tree commit diff
path: root/users/riking/dotfiles/fish
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-09-23T00·17-0700
committerkanepyork <rikingcoding@gmail.com>2020-09-23T00·22+0000
commitf178e6b9cb534a7dc54afe9c8c527391280319c9 (patch)
tree1b334fc9d214532361ea24f47a03382e5768291c /users/riking/dotfiles/fish
parent10b14cba54ee92bdb185ef418f061b557f1bd206 (diff)
feat(u/riking/fish): add ddate r/1809
Change-Id: I0ec5b8937d9cecce05a89c7c69ff40ab053dc644
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1995
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/riking/dotfiles/fish')
-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