summaryrefslogtreecommitdiffstats
path: root/bin/date
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-12-15 17:37:31 +0000
committerru <ru@FreeBSD.org>2000-12-15 17:37:31 +0000
commitd4cb36bcfe63746cb83dfe46c64e488907efc0cc (patch)
treeeb7e07fe62ff498e105cf0a1879178c41ddb6120 /bin/date
parent0e14bc212f7632a28f94044f078fd3006db77e23 (diff)
downloadFreeBSD-src-d4cb36bcfe63746cb83dfe46c64e488907efc0cc.zip
FreeBSD-src-d4cb36bcfe63746cb83dfe46c64e488907efc0cc.tar.gz
Prepare for mdoc(7)NG.
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.146
1 files changed, 30 insertions, 16 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index 5904a3bc..029fc18 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -49,15 +49,25 @@
.Op Fl t Ar minutes_west
.Oo
.Fl v
-.Op +|- Ns
-.No val Ns Op ymwdHMS
-.Oc Ns ...
-.Oo Fl f No " "
-.Ar fmt date No |
-.Oo Oo Oo Oo Oo "\&cc" Ns
-.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns
+.Sm off
+.Op Cm + | - Xo
+.Ar val Op Ar ymwdHMS
+.Xc
+.Sm on
.Oc
-.No "\&MM" Ns Op "\&.ss"
+.Ar ...
+.Oo
+.Fl f
+.Ar fmt date |
+.Sm off
+.Oo Oo Oo Oo Oo
+.Ar cc Oc
+.Ar yy Oc
+.Ar mm Oc
+.Ar dd Oc
+.Ar HH Oc
+.Ar MM Op Ar .ss
+.Sm on
.Oc
.Op Cm + Ns Ar format
.Sh DESCRIPTION
@@ -84,14 +94,18 @@ will return a non-zero for
.It Fl f
Use
.Ar fmt
-as the format string to parse the date provided rather than using
-the default
-.\" .Ar [[[[[cc]yy]mm]dd]HH]MM[.ss]
-.Xo
-.Oo Oo Oo Oo Oo "\&cc" Ns
-.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns
-.Oc
-.No "\&MM" Ns Op "\&.ss" Xc
+as the format string to parse the
+.Ar date
+provided rather than using the default
+.Sm off
+.Oo Oo Oo Oo Oo
+.Ar cc Oc
+.Ar yy Oc
+.Ar mm Oc
+.Ar dd Oc
+.Ar HH
+.Oc Ar MM Op Ar .ss
+.Sm on
format.
Parsing is done using
.Xr strptime 3 .
OpenPOWER on IntegriCloud