Skip to content

Unexpected result for some dates #5

Description

@gakhov

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions