summaryrefslogtreecommitdiff
path: root/doc/getdate.texi
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-05-10 03:26:38 +0000
committerJim Meyering <jim@meyering.net>1996-05-10 03:26:38 +0000
commit7b33a9910cba23029daaae30a73c65f7e9fa8a4d (patch)
treea05cf39cc288661ca151626fd4d638799a4b5fa9 /doc/getdate.texi
parentd60264342db7f06dcc5a1565999f1a4c683c2df2 (diff)
downloadcoreutils-7b33a9910cba23029daaae30a73c65f7e9fa8a4d.tar.xz
.
Diffstat (limited to 'doc/getdate.texi')
-rw-r--r--doc/getdate.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/getdate.texi b/doc/getdate.texi
index 80a75f13e..8b83a67a5 100644
--- a/doc/getdate.texi
+++ b/doc/getdate.texi
@@ -94,7 +94,7 @@ specified differently, depending on whether the month is specified
numerically or literally. All these strings specify the same calendar date:
@example
-1970-9-17 # ISO 8601.
+1970-09-17 # ISO 8601.
70-9-17 # This century assumed by default.
70-09-17 # Leading zeros are ignored.
9/17/72 # Common U.S. writing.
@@ -120,9 +120,10 @@ Here are the rules.
@cindex date format, ISO 8601
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 1 and 12, and
-@var{day} is a number between 1 and 31. If @var{year} is less than 100,
-then 1900 is added to it to force a date in this century. The construct
+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
@samp{@var{month}/@var{day}/@var{year}}, popular in the United States,
is accepted. Also @samp{@var{month}/@var{day}}, omitting the year.