Commit graph

25 commits

Author SHA1 Message Date
Paul Beckingham
297b0c4b04 Dates: Added exact-match 'eaѕter' logic
- Without checking for an exact match for 'easter', the date 'easter' is a
  valid partial match for 'eastermonday'.
2015-07-24 22:57:47 -04:00
Paul Beckingham
f1251303de Date: Collapsed 'sunday' and 'sun' into a closeEnough() call
- Removed the STRING_DATE_JANUARY_LONG and STRING_DATE_JANUARY_SHORT,
  replacing them with STRING_DATE_JANUARY and a call to closeEnough().
  This means you can enter 'jan', 'janu', 'janua', 'januar', 'january',
  instead of only 'jan' or 'january'.
2015-07-19 19:52:36 -04:00
Paul Beckingham
f36c14e6b4 TW-1515: abbreviation.minimum does not apply to date recognition
- Thanks to Lars Beckers.
2015-07-19 19:08:38 -04:00
Paul Beckingham
c8d0a22fac Cleanup: Fixed inconsistent comments 2015-07-19 15:06:19 -04:00
Paul Beckingham
3cbb2bb20f Lexer: Migrated isdigit to Lexer::isDigit 2015-04-16 23:33:25 -04:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
c54a17089a Dates
- Converted ::isDay to use Date::dayOfWeek.
2014-07-06 00:20:25 -04:00
Paul Beckingham
d5919d9608 Dates
- Removed unused ::leapYear function.
2014-07-06 00:10:48 -04:00
Paul Beckingham
fb48177e90 Dates
- Eliminated redundant implementations of daysInMonth().
2014-07-05 13:02:01 -04:00
Paul Beckingham
57e63dfeb2 L10N
- Localized Dates.
2014-07-05 11:39:22 -04:00
Paul Beckingham
4996576d64 Dates
- Removed unused constants.
2014-07-05 11:30:04 -04:00
Paul Beckingham
91670e9cb5 Dates
- Named dates now store the raw form as the source, to assist parsing.
2014-06-29 22:18:43 -04:00
Paul Beckingham
3116ddcd6d Dates
- Fixed problem with eoy, where is was YYYY-12-31T00:00:00, which is
  24 hours earlier than actual eoy. Other 'eo*' names were also wrong.
  So much for unit tests.
2014-06-15 22:34:16 -04:00
Paul Beckingham
877c6fae9e Dates
- 'eom' and 'eocm' are not on YYYY-MM-{28,30,31}T00:00:00, they are
  one day later.
2014-06-15 19:14:24 -04:00
Paul Beckingham
20de57e87c Dates
- 'eoy' is not YYYY-12-31T00:00:00, it's one day later.
2014-06-15 19:13:48 -04:00
Paul Beckingham
0a67913b48 Dates
- Fixed a loose, ill-defined, poorly constructed excuse for a detector
  of date ordinals ("1st, "22nd", "3rd" and "6th").
2014-06-09 22:19:41 -04:00
Paul Beckingham
20d4e37b40 Dates
- Corrected implementation of all named dates. There were ... issues.
2014-06-08 15:02:08 -04:00
Paul Beckingham
c3a759c63d Dates
- Moved an invariant to greater scope.
2014-05-24 11:37:21 -04:00
Paul Beckingham
b532b94b81 Dates
- Implemented midsommar and midsommarafton.
2014-05-24 11:34:40 -04:00
Paul Beckingham
623b1619df Dates
- Converted atoi to strtol, and added the missing include.
2014-05-20 18:01:35 -04:00
Paul Beckingham
52edc9b7cf Dates
- Easter needs time set to 0:00:00.
2014-05-19 22:06:11 -04:00
Paul Beckingham
23f6840b95 Dates
- Supports '21st' as a date.  Theoretically.
2014-05-19 22:02:08 -04:00
Paul Beckingham
32272addd0 Code Cleanup
- Simplified leap year code.
- Began documenting date constants (eom, eow ...).
- Implemented 'soq', 'eoq'.
- Stubbed all the missing named dates.
- Removed unrelated constants.
2014-04-12 12:29:06 -04:00
Paul Beckingham
ab0d929a3c Dates
- Added support for eom and eocm.
- Added more named date unit tests.
2014-01-06 23:42:02 -05:00
Paul Beckingham
f6d0be24da Dates
- Merged libexpr Dates support.
2014-01-02 01:24:25 -05:00