diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-11-10 13:34:39 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-11-10 13:34:39 +0000 |
commit | 278d74a6af04e58079d4e40d5c3421fbb9a87c06 (patch) | |
tree | 526f3e2ab3a46ba3964b3af20e0fac3412a7c9f4 /bin/date/date.1 | |
parent | 2f18ba64a9479f68ac3189aa75937bf168378309 (diff) | |
download | FreeBSD-src-278d74a6af04e58079d4e40d5c3421fbb9a87c06.zip FreeBSD-src-278d74a6af04e58079d4e40d5c3421fbb9a87c06.tar.gz |
Allow the year to be specified with an optional century.
PR: 14472
Reported by: j_guojun@lbl.gov (Jin Guojun)
Diffstat (limited to 'bin/date/date.1')
-rw-r--r-- | bin/date/date.1 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1 index 8cf4246..f044471 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -49,7 +49,7 @@ .Op Fl t Ar minutes_west .Op Fl v Ns Ar [+|-]val Ns Op ymwdHMS .Ar ... -.Op Fl f Ar fmt Ar date | [[[[yy]mm]dd]HH]MM[\&.ss] +.Op Fl f Ar fmt Ar date | [[[[[cc]yy]mm]dd]HH]MM[\&.ss] .Op Cm + Ns Ar format .Sh DESCRIPTION .Nm Date @@ -74,7 +74,7 @@ Use .Ar fmt as the format string to parse the date provided rather than using the default -.Ar [[[[yy]mm]dd]HH]MM[.ss] +.Ar [[[[[cc]yy]mm]dd]HH]MM[.ss] format. Parsing is done using .Xr strptime 3 . .It Fl j @@ -168,6 +168,8 @@ a value for setting the system's notion of the current date and time. The canonical representation for setting the date and time is: .Pp .Bl -tag -width Ds -compact -offset indent +.It Ar cc +Century (either 19 or 20) prepended to the abbreviated year. .It Ar yy Year in abbreviated form (e.g. 89 for 1989, 06 for 2006). .It Ar mm |