- Derived
Hash
on all types (#61, thanks @flauntingspade4) - Derived
Serialize
andDeserialise
behind theserde_support
flag (also #61)
- Improved performance of functions using regex (thanks, @tuube)
- Updated maintainer name to @notquiteamonad
- Added
between
method to get theDuration
between twoDateTime
s. - Deprecated
to_hours_and_minutes_string
onDuration
in favour ofto_hhmm_string
for consistency withTimeTuple
.
- Minor documentation improvements
- BREAKING CHANGE: Months in
MonthTuple
andDateTuple
are now one-based rather than zero-based (i.e. 1 represents January). If you have any serialised data from this library which is to be reingested in code, all months will need to be incremented by 1 before use with version 2.0.0. - Added
min_value()
andmax_value()
toDateTuple
. - Added
to_days()
andfrom_days()
toDateTuple
.
- Changed
MonthTuple
andDateTuple
's serialisation to conform to ISO 8601. Legacy formats can still be parsed via theFromStr
implementation.
- Add
to_minutes
methods forTimeTuple
andDuration
- Maximised test coverage
- Improved documentation
- Updated documentation
- Added the
Duration
type to hold a time longer than 24 hours.
- Added methods to get the next and previous date/month from a
DateTuple
/MonthTuple
. - All of the types now have methods which mutate them by either adding or subtracting discrete values of one of their components.
MonthTuple::this_month()
,DateTuple::today()
, andTimeTuple::now()
provide access to values produced from the current time as provided bystd::time::SystemTime::now()
.- A
TimeTuple
can now be produced from a number of seconds usingTimeTuple::from_seconds()
.
- Added type aliases of
Date
,Month
, andTime
forDateTuple
,MonthTuple
, andTimeTuple
respectively.
- First public release