Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-03-21 | Add aliases for 1second -> secondly | Matthias Beyer | |
2017-11-24 | Use NaiveDate::from_ymd_opt() / ::and_hms_opt() functions for error safety | Matthias Beyer | |
2017-11-24 | Optimize implementation | Matthias Beyer | |
Change the implementation from O(n) to O(1). | |||
2017-11-24 | Add out of bounds check and error propagation for NaiveDate::from_ymd() calls | Matthias Beyer | |
* Added recursion limit for error_chain * Added new error for out-of-bounds error * Added IntoTimeType helper trait | |||
2017-11-19 | Implement not-yet implemented match arms | Matthias Beyer | |
We can simply use our own infrastructure here to calculate the actual value of these patterns. Now things like "2015-306" (as supported by the iso8601 crate) work. | |||
2017-11-19 | Remove warnings | Matthias Beyer | |
* Remove unused imports * Remove unused variables * Remove unused functions | |||
2017-11-19 | Split parser into modules | Matthias Beyer | |
The TimeType::parse() function was removed because we don't want that there. It is not that nice, because the interface would return either a TimeType or an Iterator. | |||
2017-11-19 | Fix: Offset problem | Matthias Beyer | |
The core iterator did not yield the base on the first iteration. This is fixed with this commit, using a flag to check whether it already yielded the base and if, start incrementing. Not a clean solution, but a working one. | |||
2017-11-19 | Add tests for iterators | Matthias Beyer | |
2017-11-19 | Add more tests for UntilIter | Matthias Beyer | |
2017-11-19 | Add parser iterator type -> API iterator type mapping | Matthias Beyer | |
2017-11-19 | Add "Times" iterator helper type | Matthias Beyer | |
2017-11-19 | Add error for calculating non-date inside iterator parsing | Matthias Beyer | |
2017-11-19 | Fix until_spec parser | Matthias Beyer | |
2017-11-19 | Fix date() parser fn | Matthias Beyer | |
2017-11-11 | Replace unimplemented!() matcher with actual pattern | Matthias Beyer | |
2017-11-11 | Merge pull request #3 from matthiasbeyer/parser | Matthias Beyer | |
Parser | |||
2017-11-11 | Merge branch 'minor' | Matthias Beyer | |
2017-11-11 | Fix Bug: Called subtraction fn instead of addition fn | Matthias Beyer | |
2017-11-11 | Add test for parser which contains subtraction | Matthias Beyer | |
2017-11-11 | Fix Bug: Called subtraction fn instead of addition fn | Matthias Beyer | |
2017-11-11 | Add TimeType::parse() | Matthias Beyer | |
2017-11-11 | Error-chain setup for nom errors | Matthias Beyer | |
2017-11-11 | Make parser::timetype() pub, add documentation about interface | Matthias Beyer | |
2017-11-11 | Add internal timetype which resolves to either AmountExpr or Date | Matthias Beyer | |
2017-11-11 | Fix: There must we whitespace! | Matthias Beyer | |
2017-11-11 | Add tests for iso8601 parsing | Matthias Beyer | |
2017-11-11 | Add into-conversions and simple test for it | Matthias Beyer | |
2017-10-30 | Fix: Parse complete next expression | Matthias Beyer | |
2017-10-29 | Break amount expression parsing into multiple parts | Matthias Beyer | |
2017-10-28 | Add tests | Matthias Beyer | |
2017-10-28 | Add optional whitespace | Matthias Beyer | |
2017-10-28 | Use alt_complete!() here | Matthias Beyer | |
2017-10-28 | Add debug, partialeq, eq derive | Matthias Beyer | |
2017-10-28 | Sort tags | Matthias Beyer | |
2017-10-28 | Initial bootstrapping of nom-based parser | Matthias Beyer | |
2017-10-22 | Design syntax | Matthias Beyer | |
2017-10-22 | Initial import for parser | Matthias Beyer | |
2017-10-09 | Add another testcase for adding months over year-borders | Matthias Beyer | |
2017-10-09 | Add another testcase for adding months over year-borders | Matthias Beyer | |
2017-09-29 | Remove result module | Matthias Beyer | |
2017-09-27 | Merge branch 'remove-warnings' | Matthias Beyer | |
2017-09-27 | Remove unused variables | Matthias Beyer | |
2017-09-27 | Remove unused imports | Matthias Beyer | |
2017-09-27 | Add "Until" iterator type | Matthias Beyer | |
2017-09-27 | Add WithoutFilter iterator | Matthias Beyer | |
2017-09-27 | Fix test: Do not iterate over years and do take only 12 instances | Matthias Beyer | |
2017-09-27 | Hand-write month-adjusting in add adjusting algorithm | Matthias Beyer | |
Because we do not have a `>=` comparison operator here, but a `>`. | |||
2017-09-27 | Do not write month adjusting with macro, but hand-craft | Matthias Beyer | |
This fixes a bug: The month gets adjusted here, which invalidates the result of the get_num_of_days_in_month() call,... so we must call it again and again while adjusting here. | |||
2017-09-27 | Add tests to add more than one larger unit in the smaller unit | Matthias Beyer | |