Skip to content

Releases: Blobfolio/utc2k

v0.2.4

19 Jul 20:29
Compare
Choose a tag to compare

Changes:

  • Fix: explicitly require serde_derive when using serde 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

08 Jul 20:55
Compare
Choose a tag to compare

Changes:

  • New Utc2k::weekday method;
  • New Utc2k::month_size method;
  • New optional crate feature serde for adding serialization support to Utc2k and FmtUtc2k;

v0.2.2

01 Jul 02:45
Compare
Choose a tag to compare

Changes:

  • New FmtUtc2k::as_bytes and FmtUtc2k::AsRef<[u8]> methods;
  • Miscellaneous performance improvements;
  • Improved test coverage;

v0.2.1

27 Jun 23:21
Compare
Choose a tag to compare

Changes:

  • Fix parsing error where month part is even multiple of 12;
  • Faster string parsing;
  • Faster addition operations;
  • Improved documentation;

v0.2.0

27 Jun 05:47
Compare
Choose a tag to compare

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 to 2020-12-01 rather than 2021-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 to FmtUtc2k::set_unixtime for consistency with other methods;
  • New Utc2k::from_datetime_str and Utc2k::from_date_str methods in case more control is desired over string parsing;
  • Utc2k now implements Add<u32>, AddAssign<u32>, Sub<u32>, and SubAssign<u32>;
  • New Utc2k::ordinal method;
  • New Utc2k::leap_year method;
  • New Utc2k::seconds_from_midnight method;
  • From<Utc2k> is now implemented for u32 as an alias of Utc2k::unixtime;
  • Various performance and documentation improvements;

v0.1.2

25 Jun 20:13
Compare
Choose a tag to compare

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

24 Jun 20:58
Compare
Choose a tag to compare

Changes:

  • Implement Ord/PartialOrd;
  • Add min/max methods;
  • Minor timestamp performance improvements;

v0.1.0

24 Jun 06:27
Compare
Choose a tag to compare

Initial release!