1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-22 03:40:47 +02:00
zsh/Completion/Zsh/Command/_strftime
2020-10-25 23:06:02 +01:00

17 lines
347 B
Plaintext

#compdef strftime
local expl two='epoch time'
if (( words[(I)-r] )); then
two='date string'
fi
_arguments -S -A '-*' -s \
'-n[omit trailing newline]' \
'-q[run quietly]' \
'(3)-r[reverse lookup using strptime]' \
'-s+[assign result to parameter]:param:_parameters' \
'1:format: _date_formats zsh' \
"2:$two" \
'3:nanoseconds' \