Releases: chronotope/chrono
v0.2.18
v0.2.17
v0.2.16
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
andTimelike
. 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
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
v0.2.13
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
relevantRustc{En,De}codable
implementations for supported types has been added.
This is enabled by therustc-serialize
Cargo feature. (#34)
Changed
chrono::Duration
reexport is changed to that of crates.iotime
crate.
This enables Rust 1.0 beta compatibility.