yyDayOrdinal = 1;
yyDayNumber = $1;
}
- | tUNUMBER tDAY {
+ | tUNUMBER tDAY { /* FIXME */
yyDayOrdinal = $1;
yyDayNumber = $2;
}
yyYear = $4;
}
| tUNUMBER tMONTH {
+ /* FIXME: `date -d 'next october'' is interpreted as 2 october. */
yyMonth = $2;
yyDay = $1;
}
| tSEC_UNIT {
yyRelSeconds++;
}
- | tSNUMBER tMONTH_UNIT {
+ | tSNUMBER tMONTH_UNIT { /* FIXME */
yyRelMonth += $1 * $2;
}
- | tUNUMBER tMONTH_UNIT {
+ | tUNUMBER tMONTH_UNIT { /* FIXME */
yyRelMonth += $1 * $2;
}
| tMONTH_UNIT {
Year += 1900;
DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0)
? 29 : 28;
- if (Year < EPOCH || Year > 1999
+ if (Year < EPOCH || Year > 2037
|| Month < 1 || Month > 12
/* Lint fluff: "conversion from long may lose accuracy" */
|| Day < 1 || Day > DaysInMonth[(int)--Month])