Skip to content

Support comparison of complex timestamps #7

@youssefeldakar

Description

@youssefeldakar

Extend the simple comparison of timestamps as bare integer values (e.g., "20210201112034") to more complex strings (e.g., "1.0.3b").

Consider adopting the logic of --compare-versions in the dpkg command (Debian package manager):

https://www.man7.org/linux/man-pages/man1/dpkg.1.html

Perl implementation of the algorithm for reference:

https://st.aticpan.org/source/GUILLEM/Dpkg-1.20.7/lib/Dpkg/Version.pm
https://metacpan.org/release/Dpkg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions