Releases: chronotope/chrono
Releases · chronotope/chrono
v0.4.11
Improvements
- Support a space or
T
inFromStr
forDateTime<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
alloc
feature to improve no-std support (in #341) means that if you were relying on chrono withno-default-features
and using any of the functions that require alloc support (i.e. any of the string-generating functions liketo_rfc3339
) you will need to add thealloc
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
ofItem
s (for exampleformat_with_items
) now acceptIterator
ofBorrow<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
Fixes
- Make Datetime arithmatic adjust their offsets after discovering their new timestamps (@quodlibetor #337)
- Put
wasm-bindgen
related code and dependencies behind awasmbind
feature 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
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
v0.4.5
Features
- Added several more serde deserialization helpers (@novacrazy #258)
- Enabled all features on the playground (@davidtwco #267)
- Derive
Hash
onFixedOffset
(@LuoZijun #254) - Improved docs (@storyfeet #261, @quodlibetor #252)
v0.4.4
v0.4.3
Features
- Added methods to DateTime/NaiveDateTime to present the stored value as a number of nanoseconds since the UNIX epoch (@HarkonenBade #247)
- Added a serde serialise/deserialise module for nanosecond timestamps. (@HarkonenBade #247)
- Added "Permissive" timezone parsing which allows a numeric timezone to be specified without minutes. (@quodlibetor #242)
v0.4.2
Deprecations
- More strongly deprecate RustcSerialize: remove it from documentation unless the feature is enabled, issue a deprecation warning if the rustc-serialize feature is enabled (@quodlibetor #174)
Features
v0.4.1
Bug Fixes
- Allow parsing timestamps with subsecond precision (@jonasbb)
- RFC2822 allows times to not include the second (@upsuper)
Features
- New
timestamp_millis
method onDateTime
andNaiveDateTim
that returns number of milliseconds since the epoch. (@quodlibetor) - Support exact decimal width on subsecond display for RFC3339 via a new
to_rfc3339_opts
method onDateTime
(@dekellum) - Use no_std-compatible num dependencies (@cuviper)
- Add
SubsecRound
trait that allows rounding to the nearest second (@dekellum)