summaryrefslogtreecommitdiff
path: root/src/lib.rs
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.
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-24documentation fixdfhoughton
2019-11-24new small_grammar featuredfhoughton
2019-09-15use MATCHER in parsable to spread around the serialization savingsdfhoughton
2019-09-15user serialized matcher to speed things updfhoughton
2019-06-30added parsable functiondfhoughton
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-03better organization and documentation of grammardfhoughton
2019-02-03added relative displacement patterndfhoughton
2019-02-03rearranged code; enabled Friday the 13thdfhoughton
2019-02-02handle noon and midnightdfhoughton
2019-02-02added time around patterndfhoughton
2019-01-27added the month-day patterndfhoughton
2019-01-27added ordinals in a_date patterndfhoughton
2019-01-20fixed regressiondfhoughton
2019-01-12added msg method to TimeErrordfhoughton
2019-01-06hiding public API itemdfhoughton
2019-01-05made space optional before era suffixdfhoughton
2019-01-05a few more tests; removed more unused importsdfhoughton
2019-01-05removed all references to UTC timedfhoughton
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-27and more synonymsdfhoughton
2018-12-27added some more synonyms for fundfhoughton
2018-12-27introduced a config object to simplify function signatures and handle pay ↵dfhoughton
periods
2018-12-26more refactoring in preparation for handling periodsdfhoughton
2018-12-26refactored things to handle periodsdfhoughton
2018-12-26a little refactoringdfhoughton
2018-12-24added simple timesdfhoughton
2018-12-23removed unnecessary main.rs; added time of day handlingdfhoughton
2018-12-23first commitdfhoughton