[zsh] add a timestamp printing function

This commit is contained in:
Dmytro Meleshko 2021-02-05 11:13:25 +02:00
parent 871aa910da
commit fe2dd2c982
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ declare -A date_formats=(
compact '%Y%m%d%H%M%S'
only-date '%Y-%m-%d'
only-time '%H:%M:%S'
timestamp '%s'
)
for format_name format in "${(kv)date_formats[@]}"; do