Skip to content

Releases: chronotope/chrono

v0.4.16

25 Sep 19:25

Choose a tag to compare

  • Add %Z specifier to the FromStr, similar to the glibc strptime (does not set the offset from the timezone name)

  • Drop the dependency on time v0.1, which is deprecated, unless the oldtime feature is active. This feature is active by default in v0.4.16 for backwards compatibility, but will likely be removed in v0.5. Code that imports time::Duration should be switched to import chrono::Duration instead to avoid breakage.

v0.4.15

25 Sep 19:26

Choose a tag to compare

Fixes

  • Correct usage of vec in specific feature combinations (@quodlibetor)

v0.4.14

05 Sep 11:49

Choose a tag to compare

Features

  • Add day and week iterators for NaiveDate (@gnzlbg & @robyoung)
  • Add a Month enum (@hhamana)
  • Add locales. All format functions can now use locales, see the documentation for the unstable-locales feature.
  • Fix Local.from_local_datetime method for wasm

Improvements

  • Added MIN and MAX values for NaiveTime, NaiveDateTime and DateTime<Utc>.

v0.4.13

06 Jul 00:00
2b5437d

Choose a tag to compare

Features

  • Add DurationRound trait that allows rounding and truncating by Duration (@robyoung)

Internal Improvements

  • Code improvements to impl From for js_sys in wasm to reuse code (@schrieveslaach)

v0.4.12

01 Jul 22:25
311659f

Choose a tag to compare

New Methods and impls

  • Duration::abs to ensure that a duration is just a magnitude (#418 @abreis).

Compatibility improvements

  • impl From for js_sys in wasm (#424 @schrieveslaach)
  • Bump required version of time for redox support.

Bugfixes

Internal Improvements

  • Migrate to github actions from travis-ci, make the overall CI experience more comprehensible, significantly faster and more correct (#439 @quodlibetor)

v0.4.11

01 Jul 22:24
e493218

Choose a tag to compare

Improvements

  • Support a space or T in FromStr for DateTime<Tz>, meaning that e.g.
    dt.to_string().parse::<DateTime<Utc>>() now correctly works on round-trip.
    (@quodlibetor in #378)
  • Support "negative UTC" in parse_from_rfc2822 (@quodlibetor #368 reported in
    #102)
  • Support comparisons of DateTimes with different timezones (@dlalic in #375)
  • Many documentation improvements

Bitrot and external integration fixes

Internal improvements

v0.4.10

05 Sep 11:53
5905935

Choose a tag to compare

Compatibility notes

  • Putting some functionality behind an alloc feature to improve no-std support (in #341) means that if you were relying on chrono with no-default-features and using any of the functions that require alloc support (i.e. any of the string-generating functions like to_rfc3339) you will need to add the alloc feature in your Cargo.toml.

Improvements

  • DateTime::parse_from_str is more than 2x faster in some cases. (@michalsrb #358)
  • Significant improvements to no-std and alloc support (This should also make many format/serialization operations induce zero unnecessary allocations) (@CryZe #341)

Features

  • Functions that were accepting Iterator of Items (for example format_with_items) now accept Iterator of Borrow<Item>, so one can use values or references. (@michalsrb #358)
  • Add built-in support for structs with nested Option<Datetime> etc fields (@manifest #302)

Internal/doc improvements

  • Use markdown footnotes on the strftime docs page (@qudlibetor #359)
  • Migrate from try! -> ? (question mark) because it is now emitting deprecation warnings and has been stable since rustc 1.13.0
  • Deny dead code

v0.4.9

05 Sep 11:53
bbfcfad

Choose a tag to compare

Fixes

  • Make Datetime arithmatic adjust their offsets after discovering their new timestamps (@quodlibetor #337)
  • Put wasm-bindgen related code and dependencies behind a wasmbind feature gate. (@quodlibetor #335)

v0.4.7

05 Sep 11:57

Choose a tag to compare

Fixes

  • Disable libc default features so that CI continues to work on rust 1.13
  • Fix panic on negative inputs to timestamp_millis (@cmars #292)
  • Make LocalResult Copy/Eq/Hash

Features

  • Add std::convert::From conversions between the different timezone formats (@mqudsi #271)
  • Add timestamp_nanos methods (@jean-airoldie #308)
  • Documentation improvements

v0.4.6

05 Sep 11:57

Choose a tag to compare

Maintenance

  • Doc improvements -- improve README CI verification, external links
  • winapi upgrade to 0.3

Features

  • Added NaiveDate::from_weekday_of_month{,_opt} for getting eg. the 2nd Friday of March 2017.