# Changelog ## [0.11.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.11.0) - 2024-10-25 ### New * `FmtUtc2k::MIN` * `FmtUtc2k::MAX` * `Utc2k::MIN` * `Utc2k::MAX` ### Fixed * Clamp `utc2k::unixtime` to supported min/max range in case the system clock is the right kind of wrong ### Changed * Make `Utc2k::cmp_date` const * Make `Utc2k::cmp_time` const ### Replaced * `FmtUtc2k::min` (use `FmtUtc2k::MIN` instead) * `FmtUtc2k::max` (use `FmtUtc2k::MAX` instead) * `Utc2k::min` (use `Utc2k::MIN` instead) * `Utc2k::max` (use `Utc2k::MAX` instead) ## [0.10.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.10.0) - 2024-09-14 ### Changed * Bump `tz-rs` to `0.7` * Bump MSRV to `1.81` * Miscellaneous code lints ## [0.9.1](https://github.com/Blobfolio/utc2k/releases/tag/v0.9.1) - 2024-09-05 ### Changed * Miscellaneous code cleanup and lints * Add `visit_bytes` to `Month`/`Weekday` deserializers * Bump `brunch` to `0.6` ## [0.9.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.9.0) - 2024-08-03 ### New * `Month::all` * `Month::into_iter` (repeating month iterator) * Enable de/serialization for `Month` (with `serde` crate feature) * impl `FromStr` for `Month` * impl `TryFrom<&[u8]>` for `Month` * `Weekday::all` * `Weekday::into_iter` (repeating week iterator) * Enable de/serialization for `Weekday` (with `serde` crate feature) * impl `FromStr` for `Weekday` * impl `TryFrom<&[u8]>` for `Weekday` ### Breaking * Bump MSRV to `1.80` ### Changed * `Utc2k::unixtime` is now const * `Utc2k::abs_diff` is now const ## [0.8.1](https://github.com/Blobfolio/utc2k/releases/tag/v0.8.1) - 2024-07-25 ### Changed * Miscellaneous code lints ## [0.8.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.8.0) - 2024-02-08 ### Removed * `Borrow<[u8]>` for `FmtUtc2k` ### Other * Miscellaneous doc/script cleanup ## [0.7.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.7.0) - 2023-10-05 ### New * `Weekday::first_in_month` * `Weekday::last_in_month` * `Weekday::nth_in_month` ## [0.6.1](https://github.com/Blobfolio/utc2k/releases/tag/v0.6.1) - 2023-07-13 ### Changed * Update dev dependencies ## [0.6.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.6.0) - 2023-06-01 ### Changed * 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](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.15) - 2023-02-15 ### Changed * Improve `Deserialize` handling ### New * impl `FromStr` for `Utc2k` (same as `TryFrom<&str>`) * impl `FromStr` for `FmtUtc2k` (same as `TryFrom<&str>`) ## [0.5.14](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.14) - 2023-02-04 ### Changed * Improve docs.rs environment detection * Declare "serde" feature explicitly ## [0.5.13](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.13) - 2023-01-26 ### Changed * Bump brunch `0.4` ## [0.5.12](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.12) - 2023-01-01 ### Fixed * `utc2k::year` sometimes off by one! ## [0.5.11](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.11) - 2022-12-29 ### Changed * Bump once_cell * Update ci badge syntax (docs) ## [0.5.10](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.10) - 2022-11-03 ### Changed * Bump once_cell ## [0.5.9](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.9) - 2022-09-22 ### Changed * Update dependencies * Improve docs ## [0.5.8](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.8) - 2022-09-02 ### Changed * Update dependencies ## [0.5.7](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.7) - 2022-08-19 ### Changed * Lower once_cell version specificity ## [0.5.6](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.6) - 2022-08-14 ### Changed * Bump tz-rs `=0.6.14` ## [0.5.5](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.5) - 2022-08-11 ### Changed * Bump tz-rs `=0.6.12` * Bump fastrand `1.8.0` * Remove `serde_yaml` dev dependency ## [0.5.4](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.4) - 2022-07-22 ### Added * `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](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.3) - 2022-07-14 ### Changed * Bump once_cell `=1.13.0` ## [0.5.2](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.2) - 2022-07-04 ### Changed * Bump MSRV `1.62`. * Bump tz-rs `=0.6.11` * Bump once_cell `=1.12.1` ## [0.5.1](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.1) - 2022-06-27 ### Changed * Bump tz-rs `=0.6.10`. ## [0.5.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.5.0) - 2022-05-30 ### Changed * Bump once_cell to `=1.12.0`. * Minor localization cache performance improvements. ## [0.4.5](https://github.com/Blobfolio/utc2k/releases/tag/v0.4.5) - 2022-05-19 ### Changed * Lock third-party dependency versions ## [0.4.4](https://github.com/Blobfolio/utc2k/releases/tag/v0.4.4) - 2022-05-02 ### Added * `LocalOffset::unixtime` (for returning the unix timestamp the offset applies to) * `LocalOffset::localtime` (for returning the adjusted timestamp) ### Changed * Timezone details are now statically cached after parsing, improving performance when multiple `LocalOffset` objects are created ## [0.4.3](https://github.com/Blobfolio/utc2k/releases/tag/v0.4.3) - 2022-04-30 ### Added * Optional crate feature `local` * `LocalOffset` (for obtaining local UTC offset) ### Changed * Bump MSRV to `1.57` * Various doc and lint tweaks ## [0.4.2](https://github.com/Blobfolio/utc2k/releases/tag/v0.4.2) - 2022-03-27 ### Added * `utc2k::year` (fetch current year) ### Changed * `Utc2k::parse_time_str` now accepts any `AsRef<[u8]>` * `Utc2k::from_datetime_str` now accepts any `AsRef<[u8]>` * `Utc2k::from_date_str` now accepts any `AsRef<[u8]>` * impl `TryFrom<&[u8]>` for `Utc2k` and `FmtUtc2k` ## [0.4.1](https://github.com/Blobfolio/utc2k/releases/tag/v0.4.1) - 2022-03-20 ### Added * `FmtUtc2k::year` * `Utc2k::parse_time_str` * impl `Hash` for `Month` * impl `Hash` for `Weekday` ### Misc * Clean up parsing helpers; * Improve string parsing performance; * Improve `to_rfc2822` performance; ## [0.4.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.4.0) - 2022-03-03 ### Fixed * Mistaken compiler optimizations can lead to overflow. ### Removed * `Weekday::as_u8` ## [0.3.4](https://github.com/Blobfolio/utc2k/releases/tag/v0.3.4) - 2022-02-15 ### Fixed * `FmtUtc2k::to_rfc2822` and `Utc2k::to_rfc2822` now zero-pads days ## [0.3.3](https://github.com/Blobfolio/utc2k/releases/tag/v0.3.3) - 2022-01-06 ### Added * New enum: `utc2k::Month` * `FmtUtc2k::eq::<&str>` * `FmtUtc2k::eq::<&String>` * `FmtUtc2k::eq::` * `FmtUtc2k::to_rfc2822` * `Utc2k::from::` * `Utc2k::from_rfc2822` * `Utc2k::month_enum` * `Utc2k::to_rfc2822` * `Weekday::add::`..`Weekday::add::` and corresponding `AddAssign`s * `Weekday::eq::`..`Weekday::eq::` * `Weekday::from::`..`Weekday::from::` * `Weekday::now` * `Weekday::sub::`..`Weekday::sub::` and corresponding `SubAssign`s * `Weekday::tomorrow` * `Weekday::try_from::<&str>` * `Weekday::try_from::` * `Weekday::yesterday` ### Changed * Performance optimizations for `Utc2k::sub::` * `Weekday` is now represented as a `u8` ### Deprecated * `Weekday::as_u8` ## [0.3.2](https://github.com/Blobfolio/utc2k/releases/tag/v0.3.2) - 2021-12-13 ### Added * `Utc2k::to_rfc3339` * `FmtUtc2k::to_rfc3339` ## [0.3.1](https://github.com/Blobfolio/utc2k/releases/tag/v0.3.1) - 2021-11-27 ### Changed * Replace the dev-dependency `chrono` with `time`. ## [0.3.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.3.0) - 2021-10-21 ### Added * This changelog! Haha. ### Changed * Use Rust edition 2021.