Skip to content

new nom based parser and a better formatter#51

Open
frectonz wants to merge 18 commits intochronotope:mainfrom
frectonz:main
Open

new nom based parser and a better formatter#51
frectonz wants to merge 18 commits intochronotope:mainfrom
frectonz:main

Conversation

@frectonz
Copy link

The new parser adds support for the following

  • allows spaces between values and units, 1hour and 1 hour are both valid.
  • allows for the use of and as a separator, 1 hour and 30 minutes is valid.
  • allows for fractional time spans, 1.5 days 4 hours

@baoyachi
Copy link

baoyachi commented Apr 1, 2025

@frectonz You can take a look at duration-str. The implementation of this pr is similar to this crate.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants