Sourced from time's releases.
v0.3.39
See the changelog for details.
v0.3.38
See the changelog for details.
Sourced from time's changelog.
0.3.39 [2025-03-06]
Fixed
- Doc tests run successfully with the default feature set.
- wasm builds work again.
Both of these were regressions in v0.3.38 and are now checked in CI.
0.3.38 [2025-03-05]
Added
The
[year]
component (in format descriptions) now supports arange
modifier, which can be eitherstandard
orextended
. The default isextended
for backwards compatibility. This is intended as a manner to opt out of the extended range when thelarge-dates
feature is enabled. When thelarge-dates
feature is not enabled, the modifier has no effect.
UtcDateTime
, which is semantically equivalent to anOffsetDateTime
with UTC as its offset. The advantage is that it is the same size as aPrimitiveDateTime
and has improved operability with well-known formats.As part of this, there were some other additions:
utc_datetime!
macro, which is similar to thedatetime!
macro but constructs aUtcDateTime
.PrimitiveDateTime::as_utc
OffsetDateTime::to_utc
OffsetDateTime::checked_to_utc
time::serde::timestamp::milliseconds_i64
, which is a module to serialize/deserialize timestamps as the Unix timestamp. The pre-existing module does this as ani128
where ani64
would suffice. This new module should be preferred.Changed
error::Format
has had itssource()
implementation changed to no longer return a boxed value from theComponentRange
variant. If you were explicitly expecting this, you will need to update your code. The method API remains unchanged.[year repr:century]
supports single-digit values.- All
format_into
methods accept?Sized
references.Miscellaneous
- Some non-exhaustive enum variants that are no longer used have been modified to be statically proven as uninhabited. The relevant fields are doc-hidden and not semver-guaranteed to remain as such, though it is unlikely to change.
- An unnecessary check when parsing RFC 2822 has been removed.
- Various methods have had their implementations changed, resulting in significant performance gains. Among the methods changed are
util::is_leap_year
util::weeks_in_year
Month::length
Date::to_calendar_date
... (truncated)
7949d2c
v0.3.39 releasef51623b
Fix breakage from v0.3.381a31c05
v0.3.38 releaseaddf231
Permit unsized writers for format_into
338f84f
Allow clippy::ref_option lint for serde::format_description.f8ecd81
feat: timestamp::milliseconds_i64 serializerce03bca
Update Unicode license for cargo-audit3d0b981
Add parentheses for clarity3096301
Remove specific year from licenseec327a2
Optimize Julian day calculations