diff options
author | Jim Meyering <jim@meyering.net> | 1999-11-23 12:57:10 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-11-23 12:57:10 +0000 |
commit | f5c9c0777948b2ec38376411aaa81719223e0418 (patch) | |
tree | a0ad328342dc4dad1a7619297693682c1b61c570 | |
parent | 05de2104b9197cd5e18bae80917c3a1b4743060c (diff) | |
download | coreutils-f5c9c0777948b2ec38376411aaa81719223e0418.tar.xz |
(Calendar date item): Correction regarding 0..68/
69-99 split for 1900 vs 2000. From Peter Moulder.
-rw-r--r-- | doc/getdate.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/getdate.texi b/doc/getdate.texi index 09c690a46..ddbd03ab6 100644 --- a/doc/getdate.texi +++ b/doc/getdate.texi @@ -114,7 +114,7 @@ numerically or literally. All these strings specify the same calendar date: @example 1970-09-17 # ISO 8601. -70-9-17 # This century assumed by default. +70-9-17 # Assume 19xx for 69 through 99, 20xx for 00 through 68. 70-09-17 # Leading zeros are ignored. 9/17/72 # Common U.S. writing. 24 September 1972 @@ -141,8 +141,9 @@ For numeric months, the ISO 8601 format @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is any positive number, @var{month} is a number between 01 and 12, and @var{day} is a number between 01 and 31. A leading zero must be present -if a number is less than ten. If @var{year} is less than 100, then 1900 -is added to it to force a date in this century. The construct +if a number is less than ten. If @var{year} is 68 or smaller, then 2000 +is added to it; otherwise, if @var{year} is less than 100, +then 1900 is added to it. The construct @samp{@var{month}/@var{day}/@var{year}}, popular in the United States, is accepted. Also @samp{@var{month}/@var{day}}, omitting the year. |