Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Add parsing functionality for time periods with tests in Rust This commit introduces a new feature for parsing strings representing time periods into a Period enum with variants for days, weeks, months, and years. The Period enum also includes a method to convert these periods in chrono::Duration objects. The parsing is done using the nom crate, with support for both numeric and written numbers. Additionally, unit tests are included to ensure the parsing works correctly for various inputs, includin edge cases and invalid strings.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages