Skip to content

Releases: chronotope/chrono

v0.2.18

05 Sep 12:09
Compare
Choose a tag to compare

Fixed

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

v0.2.17

05 Sep 12:09
Compare
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
Compare
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
Compare
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
Compare
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)

v0.2.13

05 Sep 12:13
Compare
Choose a tag to compare

This version is finally beta-compatible.

This introduces a slight incompatibility, namely, due to the rewired reexport for chrono::Duration (which now comes from crates.io time crate).

Added

  • The optional dependency on rustc_serialize and
    relevant Rustc{En,De}codable implementations for supported types has been added.
    This is enabled by the rustc-serialize Cargo feature. (#34)

Changed

  • chrono::Duration reexport is changed to that of crates.io time crate.
    This enables Rust 1.0 beta compatibility.

v0.2.12

05 Sep 12:14
Compare
Choose a tag to compare

Language changes.

  • Many std::num traits are removed and replaced with the external num crate. For time being, thus, Chrono will require the dependency on num. This is expected to be temporary however.

v0.2.11

05 Sep 12:14
Compare
Choose a tag to compare

Language changes.

  • Replaced thread::scoped with thread::spawn to cope with a rare de-stabilization event.

  • #[deprecated] is (ironically) deprecated with user crates.
    All uses of them have been replaced by doc comments.

v0.2.10

05 Sep 12:14
Compare
Choose a tag to compare

Language changes.

  • Copy requires Clone.

v0.2.9

05 Sep 12:15
Compare
Choose a tag to compare

Language changes.

  • std::num::Int is deprecated.

  • Removed one feature flag (str_char).