]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Also accept dates of the form May-23-2003.
authorJim Meyering <jim@meyering.net>
Tue, 10 Jun 2003 06:28:00 +0000 (06:28 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 10 Jun 2003 06:28:00 +0000 (06:28 +0000)
lib/getdate.y

index 3c4a04000f676a754aa9a15580d7a16fc76bb694..b35130b7c854a24c43bc27e134ce8499b31ee009 100644 (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;