diff options
Diffstat (limited to 'contrib/cvs/lib/getdate.y')
-rw-r--r-- | contrib/cvs/lib/getdate.y | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/cvs/lib/getdate.y b/contrib/cvs/lib/getdate.y index c321305..0e128d7 100644 --- a/contrib/cvs/lib/getdate.y +++ b/contrib/cvs/lib/getdate.y @@ -175,9 +175,27 @@ item : time { | rel { yyHaveRel++; } + | cvsstamp { + yyHaveTime++; + yyHaveDate++; + yyHaveZone++; + } | number ; +cvsstamp: tUNUMBER '.' tUNUMBER '.' tUNUMBER '.' tUNUMBER '.' tUNUMBER '.' tUNUMBER { + yyYear = $1; + if (yyYear < 100) yyYear += 1900; + yyMonth = $3; + yyDay = $5; + yyHour = $7; + yyMinutes = $9; + yySeconds = $11; + yyDSTmode = DSToff; + yyTimezone = 0; + } + ; + time : tUNUMBER tMERIDIAN { yyHour = $1; yyMinutes = 0; |