commit 7637bd8df3b1942419fa2efa96425238935010c3 parent a64a0b0cfa9bdceb047b26d75b00802e2eac0ca5 Author: hhvn <hayden@hhvn.uk> Date: Mon, 14 Jun 2021 21:21:50 +0100 bin/date: integrate with dateconv Diffstat:
M | bin/date | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/bin/date b/bin/date @@ -1,6 +1,11 @@ #!/bin/sh # force +format +[ "$3" = "to" ] && { + dateconv --from-zone "$2" --zone "$4" "$1" + exit +} + [ -z "$@" ] && date || date +"${*#+}"