diff options
author | Jim Meyering <jim@meyering.net> | 2003-06-10 06:28:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-06-10 06:28:00 +0000 |
commit | 208b95e19812743fc20a8d04428c6a855bb779f6 (patch) | |
tree | 17312f74a99b3bb9f03aef279d3aaa0b9cc7dd7a | |
parent | 3ceea0946b97629ecd30a5080e6ca770207fb80f (diff) | |
download | coreutils-208b95e19812743fc20a8d04428c6a855bb779f6.tar.xz |
Also accept dates of the form May-23-2003.
-rw-r--r-- | lib/getdate.y | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index 3c4a04000..b35130b7c 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -321,6 +321,14 @@ date: PC.year.value = -$3.value; PC.year.digits = $3.digits; } + | tMONTH tSNUMBER tSNUMBER + { + /* e.g. JUN-17-1992. */ + PC.month = $1; + PC.day = -$2.value; + PC.year.value = -$3.value; + PC.year.digits = $3.digits; + } | tMONTH tUNUMBER { PC.month = $1; |