mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add a timestamp printing function
This commit is contained in:
parent
871aa910da
commit
fe2dd2c982
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue