Releases: chronotope/chrono
Releases · chronotope/chrono
v0.4.16
-
Add %Z specifier to the
FromStr, similar to the glibcstrptime(does not set the offset from the timezone name) -
Drop the dependency on time v0.1, which is deprecated, unless the
oldtimefeature 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 importstime::Durationshould be switched to importchrono::Durationinstead to avoid breakage.
v0.4.15
Fixes
- Correct usage of vec in specific feature combinations (@quodlibetor)
v0.4.14
Features
- Add day and week iterators for
NaiveDate(@gnzlbg & @robyoung) - Add a
Monthenum (@hhamana) - Add
locales. All format functions can now use locales, see the documentation for theunstable-localesfeature. - Fix
Local.from_local_datetimemethod for wasm
Improvements
- Added MIN and MAX values for
NaiveTime,NaiveDateTimeandDateTime<Utc>.
v0.4.13
Features
- Add
DurationRoundtrait that allows rounding and truncating byDuration(@robyoung)
Internal Improvements
- Code improvements to impl
Fromforjs_sysin wasm to reuse code (@schrieveslaach)
v0.4.12
New Methods and impls
Compatibility improvements
- impl
Fromforjs_sysin wasm (#424 @schrieveslaach) - Bump required version of
timefor redox support.
Bugfixes
- serde modules do a better job with
Optiontypes (#417 @mwkroening and #429 @fx-kirin) - Use js runtime when using wasmbind to get the local offset (#412 @quodlibetor)
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
Improvements
- Support a space or
TinFromStrforDateTime<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
- Don't use wasmbind on wasi (@coolreader18 #365)
- Avoid deprecation warnings for
Error::description(@AnderEnder and
@quodlibetor #376)
Internal improvements
- Use Criterion for benchmarks (@quodlibetor)
v0.4.10
Compatibility notes
- Putting some functionality behind an
allocfeature to improve no-std support (in #341) means that if you were relying on chrono withno-default-featuresand using any of the functions that require alloc support (i.e. any of the string-generating functions liketo_rfc3339) you will need to add theallocfeature in your Cargo.toml.
Improvements
DateTime::parse_from_stris 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
IteratorofItems (for exampleformat_with_items) now acceptIteratorofBorrow<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
strftimedocs 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
Fixes
- Make Datetime arithmatic adjust their offsets after discovering their new timestamps (@quodlibetor #337)
- Put
wasm-bindgenrelated code and dependencies behind awasmbindfeature gate. (@quodlibetor #335)
v0.4.7
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
LocalResultCopy/Eq/Hash
Features
- Add
std::convert::Fromconversions between the different timezone formats (@mqudsi #271) - Add
timestamp_nanosmethods (@jean-airoldie #308) - Documentation improvements