0.11.0 - 2024-10-25
FmtUtc2k::MIN
FmtUtc2k::MAX
Utc2k::MIN
Utc2k::MAX
- Clamp
utc2k::unixtime
to supported min/max range in case the system clock is the right kind of wrong
- Make
Utc2k::cmp_date
const - Make
Utc2k::cmp_time
const
FmtUtc2k::min
(useFmtUtc2k::MIN
instead)FmtUtc2k::max
(useFmtUtc2k::MAX
instead)Utc2k::min
(useUtc2k::MIN
instead)Utc2k::max
(useUtc2k::MAX
instead)
0.10.0 - 2024-09-14
- Bump
tz-rs
to0.7
- Bump MSRV to
1.81
- Miscellaneous code lints
0.9.1 - 2024-09-05
- Miscellaneous code cleanup and lints
- Add
visit_bytes
toMonth
/Weekday
deserializers - Bump
brunch
to0.6
0.9.0 - 2024-08-03
Month::all
Month::into_iter
(repeating month iterator)- Enable de/serialization for
Month
(withserde
crate feature) - impl
FromStr
forMonth
- impl
TryFrom<&[u8]>
forMonth
Weekday::all
Weekday::into_iter
(repeating week iterator)- Enable de/serialization for
Weekday
(withserde
crate feature) - impl
FromStr
forWeekday
- impl
TryFrom<&[u8]>
forWeekday
- Bump MSRV to
1.80
Utc2k::unixtime
is now constUtc2k::abs_diff
is now const
0.8.1 - 2024-07-25
- Miscellaneous code lints
0.8.0 - 2024-02-08
Borrow<[u8]>
forFmtUtc2k
- Miscellaneous doc/script cleanup
0.7.0 - 2023-10-05
Weekday::first_in_month
Weekday::last_in_month
Weekday::nth_in_month
0.6.1 - 2023-07-13
- Update dev dependencies
0.6.0 - 2023-06-01
- Bump MSRV
1.70
- Drop
once_cell
(in favor of new built-in types) - Replace various
unsafe
blocks with safe alternatives - Add debug/assertions for logical redundancy
- CI: test in debug and release modes
- CI: test MSRV
0.5.15 - 2023-02-15
- Improve
Deserialize
handling
- impl
FromStr
forUtc2k
(same asTryFrom<&str>
) - impl
FromStr
forFmtUtc2k
(same asTryFrom<&str>
)
0.5.14 - 2023-02-04
- Improve docs.rs environment detection
- Declare "serde" feature explicitly
0.5.13 - 2023-01-26
- Bump brunch
0.4
0.5.12 - 2023-01-01
utc2k::year
sometimes off by one!
0.5.11 - 2022-12-29
- Bump once_cell
- Update ci badge syntax (docs)
0.5.10 - 2022-11-03
- Bump once_cell
0.5.9 - 2022-09-22
- Update dependencies
- Improve docs
0.5.8 - 2022-09-02
- Update dependencies
0.5.7 - 2022-08-19
- Lower once_cell version specificity
0.5.6 - 2022-08-14
- Bump tz-rs
=0.6.14
0.5.5 - 2022-08-11
- Bump tz-rs
=0.6.12
- Bump fastrand
1.8.0
- Remove
serde_yaml
dev dependency
0.5.4 - 2022-07-22
Utc2k::abs_diff
Utc2k::cmp_date
Utc2k::cmp_time
Utc2k::from_smooshed_date_str
Utc2k::from_smooshed_datetime_str
Utc2k::to_midnight
0.5.3 - 2022-07-14
- Bump once_cell
=1.13.0
0.5.2 - 2022-07-04
- Bump MSRV
1.62
. - Bump tz-rs
=0.6.11
- Bump once_cell
=1.12.1
0.5.1 - 2022-06-27
- Bump tz-rs
=0.6.10
.
0.5.0 - 2022-05-30
- Bump once_cell to
=1.12.0
. - Minor localization cache performance improvements.
0.4.5 - 2022-05-19
- Lock third-party dependency versions
0.4.4 - 2022-05-02
LocalOffset::unixtime
(for returning the unix timestamp the offset applies to)LocalOffset::localtime
(for returning the adjusted timestamp)
- Timezone details are now statically cached after parsing, improving performance when multiple
LocalOffset
objects are created
0.4.3 - 2022-04-30
- Optional crate feature
local
LocalOffset
(for obtaining local UTC offset)
- Bump MSRV to
1.57
- Various doc and lint tweaks
0.4.2 - 2022-03-27
utc2k::year
(fetch current year)
Utc2k::parse_time_str
now accepts anyAsRef<[u8]>
Utc2k::from_datetime_str
now accepts anyAsRef<[u8]>
Utc2k::from_date_str
now accepts anyAsRef<[u8]>
- impl
TryFrom<&[u8]>
forUtc2k
andFmtUtc2k
0.4.1 - 2022-03-20
FmtUtc2k::year
Utc2k::parse_time_str
- impl
Hash
forMonth
- impl
Hash
forWeekday
- Clean up parsing helpers;
- Improve string parsing performance;
- Improve
to_rfc2822
performance;
0.4.0 - 2022-03-03
- Mistaken compiler optimizations can lead to overflow.
Weekday::as_u8
0.3.4 - 2022-02-15
FmtUtc2k::to_rfc2822
andUtc2k::to_rfc2822
now zero-pads days
0.3.3 - 2022-01-06
- New enum:
utc2k::Month
FmtUtc2k::eq::<&str>
FmtUtc2k::eq::<&String>
FmtUtc2k::eq::<String>
FmtUtc2k::to_rfc2822
Utc2k::from::<FmtUtc2k>
Utc2k::from_rfc2822
Utc2k::month_enum
Utc2k::to_rfc2822
Weekday::add::<u8>
..Weekday::add::<u64>
and correspondingAddAssign
sWeekday::eq::<u8>
..Weekday::eq::<u64>
Weekday::from::<u8>
..Weekday::from::<u64>
Weekday::now
Weekday::sub::<u8>
..Weekday::sub::<u64>
and correspondingSubAssign
sWeekday::tomorrow
Weekday::try_from::<&str>
Weekday::try_from::<String>
Weekday::yesterday
- Performance optimizations for
Utc2k::sub::<u32>
Weekday
is now represented as au8
Weekday::as_u8
0.3.2 - 2021-12-13
Utc2k::to_rfc3339
FmtUtc2k::to_rfc3339
0.3.1 - 2021-11-27
- Replace the dev-dependency
chrono
withtime
.
0.3.0 - 2021-10-21
- This changelog! Haha.
- Use Rust edition 2021.