Skip to content

Releases: chronotope/chrono

v0.2.23

05 Sep 12:07

Choose a tag to compare

Added

  • The documentation was greatly improved for several types, and tons of cross-references have been added. (#77, #78, #80, #82)

  • DateTime::timestamp_subsec_{millis,micros,nanos} methods have been added. (#81)

Fixed

  • When the system time records a leap second, the nanosecond component was mistakenly reset to zero. (#84)

  • Local offset misbehaves in Windows for August and later, due to the long-standing libtime bug (dates back to mid-2015).
    Workaround has been implemented. (#85)

v0.2.22

05 Sep 12:07

Choose a tag to compare

Fixed

  • %.6f and %.9f used to print only three digits when the nanosecond part is zero. (#71)
  • The documentation for %+ has been updated to reflect the current status. (#71)

v0.2.21

05 Sep 12:08

Choose a tag to compare

Fixed

  • Fixed::LongWeekdayName was unable to recognize "sunday" (whoops). (#66)

v0.2.20

05 Sep 12:08

Choose a tag to compare

Changed

  • serde dependency has been updated to 0.7. (#63, #64)

v0.2.19

05 Sep 12:09

Choose a tag to compare

Added

  • The documentation for Date is made clear about its ambiguity and guarantees.

Fixed

  • DateTime::date had been wrong when the local date and the UTC date is in disagreement. (#61)

v0.2.18

05 Sep 12:09

Choose a tag to compare

Fixed

  • Chrono no longer pulls a superfluous rand dependency. (#57)

v0.2.17

05 Sep 12:09

Choose a tag to compare

Added

  • Naive date and time types and DateTime now have a serde support.
    They serialize as an ISO 8601 / RFC 3339 string just like Debug. (#51)

v0.2.16

05 Sep 12:11

Choose a tag to compare

Added

  • Added %.3f, %.6f and %.9f specifier for formatting fractional seconds up to 3, 6 or 9 decimal digits. This is a natural extension to the existing %f. Note that this is (not yet) generic, no other value of precision is supported. (#45)

  • Tons of supporting examples for the documentation have been added. More to come.

Changed

  • Forbade unsized types from implementing Datelike and Timelike. This does not make a big harm as any type implementing them should be already sized to be practical, but this change still can break highly generic codes. (#46)

Fixed

  • Fixed a broken link in the README.md. (#41)

v0.2.15

05 Sep 12:11

Choose a tag to compare

Added

  • Padding modifiers %_?, %-? and %0? are implemented.
    They are glibc extensions which seem to be reasonably widespread (e.g. Ruby).

  • Added %:z specifier and corresponding formatting items which is essentially the same as %z but with a colon.

  • Added a new specifier %.f which precision adapts from the input.
    This was added as a response to the UX problems in the original nanosecond specifier %f.

Fixed

  • Numeric::Timestamp specifier (%s) was ignoring the time zone offset when provided.

  • Improved the documentation and associated tests for strftime.

v0.2.14

05 Sep 12:12

Choose a tag to compare

  • NaiveDateTime +/- Duration or NaiveTime +/- Duration could have gone wrong when the Duration to be added is negative and has a fractional second part.

    This was caused by an underflow in the conversion from Duration to the parts; the lack of tests for this case allowed a bug. (#37)