Releases: Blobfolio/utc2k
Releases · Blobfolio/utc2k
v0.2.4
Changes:
- Fix: explicitly require
serde_derive
when usingserde
feature; - Fix: add owned string deserialization support (some serializers don't support temporary statics);
- New:
Utc2k::month_abbreviation
; - New:
Utc2k::yesterday
; - New:
Utc2k::tomorrow
; - New:
Utc2k::with_time
;
v0.2.3
Changes:
- New
Utc2k::weekday
method; - New
Utc2k::month_size
method; - New optional crate feature
serde
for adding serialization support toUtc2k
andFmtUtc2k
;
v0.2.2
Changes:
- New
FmtUtc2k::as_bytes
andFmtUtc2k::AsRef<[u8]>
methods; - Miscellaneous performance improvements;
- Improved test coverage;
v0.2.1
Changes:
- Fix parsing error where month part is even multiple of 12;
- Faster string parsing;
- Faster addition operations;
- Improved documentation;
v0.2.0
Changes:
- Breaking: date part carry-overs of zero-sized month and/or day units now (correctly) rewind the year and/or month respectively, rather than just being set to
1
. For example,2021-00-01
now resolves to2020-12-01
rather than2021-01-01
. - Breaking: string parsing will now attempt to parse date-only
YYYY-MM-DD
values in cases where the length is too short to have time. - Breaking:
FmtUtc2k::set_timestamp
has been renamed toFmtUtc2k::set_unixtime
for consistency with other methods; - New
Utc2k::from_datetime_str
andUtc2k::from_date_str
methods in case more control is desired over string parsing; Utc2k
now implementsAdd<u32>
,AddAssign<u32>
,Sub<u32>
, andSubAssign<u32>
;- New
Utc2k::ordinal
method; - New
Utc2k::leap_year
method; - New
Utc2k::seconds_from_midnight
method; From<Utc2k>
is now implemented foru32
as an alias ofUtc2k::unixtime
;- Various performance and documentation improvements;
v0.1.2
Changes:
- Added
Utc2k::ymd
method for getting only the date parts; - Added
Utc2k::hms
method for getting only the time parts; - Fixed typo in
FmtUtc2k::MAX
constant; - Added
Utc2k::month_name
method for getting the name of the month (e.g. January); - Improved performance of
Utc2k::From<u32>
; - Improved performance of
Utc2k::TryFrom<&str>
;
v0.1.1
Changes:
- Implement
Ord
/PartialOrd
; - Add
min
/max
methods; - Minor timestamp performance improvements;
v0.1.0
Initial release!