Improve date parsing - maybe replace chrono and/or rrule #1202
Cito
announced in
Ideas: Any New Feature Requests go in Issues please
Replies: 2 comments
-
Brilliant idea - thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not exactly relevant to this issue, as it's about momentjs (which itself has been deprecated) but the tests in this article - and its results - could be very useful: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tasks is currently using chrono and rrule to parse dates and schedules in natural language.
Unfortunately, both libraries cause(d) various troubles when used in Tasks. For instance, it's currently not possible to specify the start of next month with chrono, and rrule skips dates that do not exist, e.g. a monthly task for the last day of a month could skip the next month when if does not have as many days. Solutions: We could try to fix or improve rrule and chrono. However, both seem very complicated, and already have many open issues. Another option would be to replace these libraries with something simpler/better.
Here are some libraries that should be evaluated as potential candidates.
date-parrot looks interesting because it parses both dates and schedules, but is only in an early stage. But maybe we can cooperate to make it better and include the typical use cases of Tasks.
And maybe there are other libraries that could be used? Let us know.
Beta Was this translation helpful? Give feedback.
All reactions