about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_strftime
blob: a57a76ce440c7057521feab9a0db5a1f0dcc85b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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' \