about summary refs log tree commit diff
path: root/Completion/Unix/Command/_date
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-11-25 15:17:18 +0000
committerClint Adams <clint@users.sourceforge.net>2005-11-25 15:17:18 +0000
commit59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a (patch)
treec6d294c3f61791e8697abcea975a770776b2a795 /Completion/Unix/Command/_date
parentd7db8f21d1ad60e71d98f2ccde51c1983fc858db (diff)
downloadzsh-59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a.tar.gz
zsh-59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a.tar.xz
zsh-59e1574eaae5bf95c28eb1f1eb7b9f76b9f4ef5a.zip
import dchroot, dlocate, dpkg-cross, madison, piuparts, toolchain-source,
bzr, cplay, date, quilt, urvt from HEAD
Diffstat (limited to 'Completion/Unix/Command/_date')
-rw-r--r--Completion/Unix/Command/_date48
1 files changed, 48 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date
new file mode 100644
index 000000000..8b1b389aa
--- /dev/null
+++ b/Completion/Unix/Command/_date
@@ -0,0 +1,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
+