kiblee / tod0

A Terminal Client for Microsoft To-Do
MIT License
121 stars 19 forks source link

Reworked datetime parser to accept am / pm time formats, fixed some parsing errors #24

Closed devzeb closed 3 years ago

devzeb commented 3 years ago

I reworked the datetime parser to allow the parsing of time strings in "am / pm 12 hour" format. I also added some unit tests for the parser.

I updated the help text and README.md accordingly. The new time expressions, which can now be parsed into a datetime object, include:

7:45 am
12:30 pm
etc
devzeb commented 3 years ago

In addition to the PR already reviewed, I pushed a change to allow the use of DD.MM.YYYY and DD.MM.YY time formats