summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-07-03Correct 24h timefix/correct_24h_timecos
While respecting that there is one culture which has colonized this planet, as well as managed to make its language the lingua franca of the contemporary world, its typical use of 12h time can not excuse going as wild with "parsing English time expressions" as this crate does prior to this commit. One might consult https://en.wikipedia.org/wiki/24-hour_clock to learn about reasonable expectations. Specifically, this fixes the bugs: * No times during the interval 00:00-00:59 were allowed. * The time 24:00 was considered 00:00, of the wrong (preceeding) day. * Bogus times in the interval 24:00-24:59 were allowed. After this commit 24:00 becomes an invalid time. Correctly rewriting it to 00:00, with overflow to the next day, is left as an excercise to whoever feels strongly enough for that edge functionality.
2021-07-03slight modernizationHEADmasterdfhoughton
2020-10-03added configuration parameter so time expressions can default to future ↵dfhoughton
instead of past interpretation
2020-05-17added 'since' expressions and also 'the' as a synonym for 'this'dfhoughton
2020-03-07various fixes and changes -- see CHANGES.mddfhoughton
2020-01-04fixed panicdfhoughton
2019-12-30reverted ToStringdfhoughton
2019-12-30fixing bare "pay period" needed by jobrogdfhoughton
2019-11-24new small_grammar featuredfhoughton
2019-06-30added parsable functiondfhoughton
2019-02-17making test a bit more thoroughdfhoughton
2019-02-16remove need for space between hour and AM/PMdfhoughton
2019-02-10added specific_time ruledfhoughton
2019-02-03fixed 'Friday the 13th' and 'the 31st'dfhoughton
2019-02-03added before and after patterndfhoughton
2019-02-03added relative displacement patterndfhoughton
2019-02-02handle noon and midnightdfhoughton
2019-02-02added English number test for before/after/around patterndfhoughton
2019-02-02added time around patterndfhoughton
2019-01-27added the month-day patterndfhoughton
2019-01-27test for kalends, nones, idesdfhoughton
2019-01-27added ordinals in a_date patterndfhoughton
2019-01-20fixed regressiondfhoughton
2019-01-05made space optional before era suffixdfhoughton
2019-01-05a few more tests; removed more unused importsdfhoughton
2019-01-05converted from utc to naive; added 'weekend'dfhoughton
2018-12-29finished code documentationdfhoughton
2018-12-29handle years betterdfhoughton
2018-12-28more two-time expressions workingdfhoughton
2018-12-28handle relative monthsdfhoughton
2018-12-28better relative time handling; added relative daysdfhoughton
2018-12-27finished specific periodsdfhoughton
2018-12-27introduced a config object to simplify function signatures and handle pay ↵dfhoughton
periods
2018-12-24added simple timesdfhoughton
2018-12-23removed unnecessary main.rs; added time of day handlingdfhoughton
2018-12-23first commitdfhoughton