From: Jim Meyering Date: Tue, 10 Jun 2003 06:28:00 +0000 (+0000) Subject: Also accept dates of the form May-23-2003. X-Git-Tag: v5.0.1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=208b95e19812743fc20a8d04428c6a855bb779f6;p=thirdparty%2Fcoreutils.git Also accept dates of the form May-23-2003. --- diff --git a/lib/getdate.y b/lib/getdate.y index 3c4a04000f..b35130b7c8 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;