Commit 52e0546
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 #1041 parent 70acff4 commit 52e0546
1 file changed
+362
-98
lines changed
0 commit comments