1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 02:10:57 +02:00

Also accept dates of the form May-23-2003.

This commit is contained in:
Jim Meyering
2003-06-10 06:28:00 +00:00
parent 3ceea0946b
commit 208b95e198

View File

@@ -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;