changeset 4503:c4806038beda

(date): Also accept dates like May-23-2003; suggestion from Karl Berry, implemented by Jim Meyering.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 05 Aug 2003 05:14:20 +0000
parents 83b0c8b8ce8f
children 66dca1409f3e
files lib/getdate.y
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -321,6 +321,14 @@
 	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;