summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-10 06:28:00 +0000
committerJim Meyering <jim@meyering.net>2003-06-10 06:28:00 +0000
commit208b95e19812743fc20a8d04428c6a855bb779f6 (patch)
tree17312f74a99b3bb9f03aef279d3aaa0b9cc7dd7a /lib/getdate.y
parent3ceea0946b97629ecd30a5080e6ca770207fb80f (diff)
downloadcoreutils-208b95e19812743fc20a8d04428c6a855bb779f6.tar.xz
Also accept dates of the form May-23-2003.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y8
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;