Crate dates_str

Source
Expand description

dates_str - A date parser

This crate, as it’s name implies, it’s not a “date & time” crate, but rather one to provide fast methods for handling datestrings: from formatting to more advanced features (TBI) as addition, subtraction or checking if a date is valid, to name a few.

There’s a lot of assumptions in this crate, such as when adding or substracting months have 30 days. Probably this coul be solved easily using a time crate, but I won’t be checking that short-term.

For full fledged date & time experiences, see:

Modules§

errors
Error module
impls
Traits and implementations module

Structs§

DateFormat
The format a DateStr will be printed
DateStr
The date struct
Day
The Day struct. Holds a u8 because there’s no 255 days.
Month
The Month struct. Holds a u8 because there’s just 12 months.
Year
The year struct. Holds a u64