Skip to content

Improve parsing of Date input formats #384

Done

Activity

  1. tertsdiepraam commented on May 12, 2024

    @tertsdiepraam
    Collaborator

    This probably fits what we're doing in the parse_datetime repository!

  2. hanbings commented on May 12, 2024

    @hanbings
    CollaboratorAuthor

    cool! It seems so.
    I would use it as a dependency to replace the existing parsing function. : )

  3. sylvestre commented on Nov 27, 2026

    @sylvestre
    SponsorContributor

    Fixed by #915, -newerXt now goes through parse_datetime.

    Results with main 51ddbfe:

    $ touch -d '2020-06-14 08:00' f
    $ find f -newermt 'June 13, 2020' -newermt '20200613' -newermt '13 Jun 2020 10:00 UTC'
    f
    $ find f -newermt '2020-06-13T10:00:00+02:00' -newermt '@1590000000'
    f
    $ find f -newermt '2 days ago'; echo "exit=$?"
    exit=0
    

    I tried a dozen formats (calendar, relative, @epoch, ISO with offset, TZ name), all give the same answer as GNU find 4.11.0.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions