1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 06:51:03 +02:00
zsh/Completion/Unix/Command/_date
Clint Adams 59e1574eaa import dchroot, dlocate, dpkg-cross, madison, piuparts, toolchain-source,
bzr, cplay, date, quilt, urvt from HEAD
2005-11-25 15:17:18 +00:00

48 lines
1.1 KiB
Text

#compdef date
if _pick_variant -r is_gnu gnu="Free Software Foundation" unix --version; then
_arguments \
'-d[date]:time string:' \
'-f[file]:date file:_files' \
'-I[iso-8601]:time spec:' \
'-r[reference]:file:_files' \
'-R[rfc-2822]' \
'-s[set]:time string:' \
'-u[utc]' \
-- \
'*=FILE*:file:_files' \
'*=DATEFILE*:date file:_files' \
':format or date:'
else
case "$OSTYPE" in
(solaris*)
_arguments \
'-u[utc]' \
'-a:adjustment:' \
':format or date:'
;;
(freebsd*)
_arguments \
'-u[utc]' \
'-n[only set time on current machine]' \
'-d:daylight savingg time value:' \
'-j[do not try to set date]' \
'-f:parsing format:' \
'-r:seconds since epoch:' \
'-t:minutes west of GMT:' \
'-v:adjustment value:' \
':format or date:'
;;
(openbsd*)
_arguments \
'-u[utc]' \
'-n[only set time on current machine]' \
'-d:daylight savingg time value:' \
'-a[gradually skew]' \
'-r:seconds since epoch:' \
'-t:minutes west of GMT:' \
':format or date:'
;;
esac
fi