Skip to content

wrong lead year #520

Closed
Closed

Description

@HQCfly

When I type dateparser.parse("2/29 10:30:02"), the result returned to me is 2029-02-28 10:30:02. I think the correct answer should be the last leap year.

Activity

  1. Gallaecio commented on May 2, 2019

    @Gallaecio
    Contributor

    I’m unsure. I would expect these to return the same year:

    dateparser.parse("2/28 10:30:02")
    dateparser.parse("2/29 10:30:02")
    dateparser.parse("3/1 10:30:02")
    
  2. lopuhin commented on May 6, 2019

    @lopuhin
    Member

    I think the correct answer should be the last leap year.

    +1 that this is not obvious, e.g. why not the next leap year, especially if it's closer?

    Maybe it would be useful to be able to know that they year is unknown.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions