blob: 8b1b389aa612e22881975b8e92b1720e83496824 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#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
|