I use 1.2 version of the parser and receive such response, that i think is inconsistent with others:
from daterangeparser import parse as parse_daterange
parse_daterange("to 5Jul2015")
>> (datetime.datetime(2015, 7, 1, 0, 0), datetime.datetime(2015, 7, 5, 0, 0))
So, it returns correct end_date, but unexpected start_date equals to the start of that month. I expect to have None as the start_date.
For instance, if I parse another the close string, it behaves right (form my point of view):
from daterangeparser import parse as parse_daterange
parse_daterange("from 5Jul2015")
>> (datetime.datetime(2015, 7, 5, 0, 0), None)
I use
1.2version of the parser and receive such response, that i think is inconsistent with others:So, it returns correct
end_date, but unexpectedstart_dateequals to the start of that month. I expect to haveNoneas thestart_date.For instance, if I parse another the close string, it behaves right (form my point of view):