Skip to content

Commit 52e0546

Browse files
committed
Parse reference date and delta from same string
Change the `parse_datetime()` function so that it parses both a reference date and a time delta from one string. The new implementation attempts to parse the datetime from the longest possible prefix of the string. The remainder of the string is parsed as the time delta. This allows us to parse more combinations of reference dates and time deltas more easily. Fixes #104
1 parent 70acff4 commit 52e0546

File tree

1 file changed

+362
-98
lines changed

1 file changed

+362
-98
lines changed

0 commit comments

Comments
 (0)