A lot of use cases for date parsing may include the need to understand date ranges. Natural language search by date may need to parse input as a time span.
Like interpreting "yesterday" as 2021.6.21 00:01 to 2021.6.21 23:60, instead of 2021.6.21 18:40.
Examples
Next week
Yesterday
This year
Next winter
This evening
Yesterday evening to Tomorrow morning
Monday to Friday
Implementation
Maybe it can be a parser setting. It can be implemented something like this: parse('yesterday', settings={'DATE_RANGE': True}).
Why?
A lot of use cases for date parsing may include the need to understand date ranges. Natural language search by date may need to parse input as a time span. Like interpreting "yesterday" as 2021.6.21 00:01 to 2021.6.21 23:60, instead of 2021.6.21 18:40.
Examples
Implementation
Maybe it can be a parser setting. It can be implemented something like this:
parse('yesterday', settings={'DATE_RANGE': True})
.