summaryrefslogtreecommitdiff
path: root/lib/getdate.y
AgeCommit message (Collapse)Author
1999-02-19<alloca.h>: Include if HAVE_ALLOCA_H, not FORCE_ALLOCA_H.Jim Meyering
The FORCE_ALLOCA_H was a relic of the bad old pre-autoconf Emacs days.
1998-12-31Fix warnings from gcc -W -WallJim Meyering
(__attribute__): Define. (ATTRIBUTE_UNUSED): Define. (yyerror): Mark parameter as unused with ATTRIBUTE_UNUSED. (MonthDayTable): Add initializers for last entry. (UnitsTable): Likewise. (OtherTable): Likewise. (MilitaryTable): Likewise.
1998-03-14s/get-date.h/getdate.h/Jim Meyering
1998-02-20s/getdate.h/get-date.h/Jim Meyering
1998-01-06Add %expect directive.Jim Meyering
Move inclusion of getdate.h and dependent extern declarations down so getdate.h's prototype follows the sometimes-enabled definition of `const' to nothing. Otherwise, the prototype wouldn't match the definition because of the defined-away `const'. (get_date): ANSI-fy definition. From Kaveh Ghazi.
1997-06-01(OtherTable): Interpret `next' as 1 (not 2) units.Jim Meyering
Patch from Richard Sharman <rsharman@magmacom.com>.
1997-04-10s/;/. in comment to placate francoisJim Meyering
1997-02-27(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1.Jim Meyering
From Andreas Schwab.
1997-02-22(tMONTH_UNIT): Increase yyRelMonth by $1, not just by 1.Jim Meyering
(tDAY_UNIT): Likewise for yyRelDay. (tHOUR_UNIT): Likewise for yyRelHour. (tMINUTE_UNIT): Likewise for yyRelMinutes. (tSEC_UNIT): Likewise for yyRelSeconds.
1997-01-18Indent with GNU indent.Jim Meyering
1997-01-18Indent 2 more cpp-directives to reflect nesting.Jim Meyering
1997-01-18(get_date): Change prototype to reflect const'ness of parameters.Jim Meyering
Indent cpp-directives to reflect nesting.
1997-01-181997-01-06 Paul Eggert <eggert@twinsun.com>Jim Meyering
* getdate.y: Rewrite to use mktime. <sys/timeb.h>: Don't include. (mktime): Declare. (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode, ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove. (ToHour): New function (part of the old ToSeconds fn). (ToYear): New function (part of the old Convert fn). (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour, yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds, Number): Now int instead of time_t. (HOUR): Don't cast to time_t. (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens. (UnitsTable): Use new units that are closer to the keywords. (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables. (rel, relunit, get_date): Add support for them. (time): Fix timezone calculations for negative half-hour offsets when integer division truncates towards minus infinity. (zone): Incorporiate DST calculation directly. (get_date): 2nd arg is now time_t *, not struct timeb *. Use mktime to do most of the work, instead of computing it ourselves. Guard against falsely reporting errors near the time_t boundaries when parsing times in other time zones.
1996-12-18add blank line.Jim Meyering
1996-12-13(IN_CTYPE_DOMAIN): Rename from ISASCII.Jim Meyering
(ISDIGIT): New definition from Paul Eggert. This one evaluates its argument exactly once. (yylex): Move increment out of ISALPHA argument. Use a comma-expression instead.
1996-12-10(Convert): Don't reject all dates in 2038.Jim Meyering
Some fit in 31 bits.
1996-12-01(date): Interpret the date, L/M/N, as YYYY/MM/DDJim Meyering
if L >= 1000, otherwise as MM/DD/YY. With this change, date --date=DATE accepts dates like those in an RCS log listing.
1996-11-01Remap yacc globals to have gd_ prefix.Jim Meyering
Suggestion to do as in gdb/c-exp.y from Tom Tromey.
1996-09-07Define and use upper case variants of ctype.h IS* macros.Jim Meyering
From Bruno Haible.
1996-03-10Merge changes from FSF.Jim Meyering
1996-03-06(RelativeMonth): Add 1900 to the year so that relative date specsJim Meyering
that push the year through the end of the century work. For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001. From Peter Dalgaard (pd@kubism.ku.dk).
1995-08-07Add FIXME comments.Jim Meyering
1995-06-07(Convert): Use 2037 as threshold, not 1999.Jim Meyering
Otherwise years after 1999 are treated as invalid. From Andreas Schwab.
1995-01-27.Jim Meyering
1995-01-27.Jim Meyering
1995-01-27Remove/rewrite some comments.Jim Meyering
1995-01-27.Jim Meyering
1994-10-08merge with 1.10qJim Meyering
1994-09-27merge with 1.10n1Jim Meyering
1994-09-25.Jim Meyering
1994-09-24merge with 1.10mJim Meyering
1994-09-17merge with 1.10jJim Meyering
1994-09-08merge with 1.10iJim Meyering
1994-09-01merge with 1.10hJim Meyering
1994-04-25merge with 1.9.4gJim Meyering
1994-04-25merge with 1.9.4fJim Meyering
1994-04-24Revert 1.14-1.16 changes that removed difftm and modified get_date.Jim Meyering
1994-04-19merge with 1.9.4eJim Meyering
1994-04-19.Jim Meyering
1994-02-10merge with 1.9.2gJim Meyering
1993-12-23merge with 1.9.2aJim Meyering
1993-12-23.Jim Meyering
1993-11-10merge with 1.9Jim Meyering
1993-11-09merge with 1.9Jim Meyering
1993-10-12merge with 1.8.1cJim Meyering
1993-10-12merge with 1.8.1bJim Meyering
1993-10-04.Jim Meyering
1993-10-04merge with 1.8.1aJim Meyering
1993-09-08merge with 1.8.1 + partial --version and --helpJim Meyering
1993-04-04* [sgi]: Undefine timezone before including <time.h>.Jim Meyering
* [time.h vs sys/time.h]: Fix boolean algebra typo from Mar 31 consolidation. * Move static dcls of yyerror and yylex to a point following the definition of those symbols to getdate_{yyerror,yylex}.