Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3.37
->0.3.38
Release Notes
time-rs/time (time)
v0.3.38
Compare Source
Added
The
[year]
component (in format descriptions) now supports arange
modifier, which can beeither
standard
orextended
. The default isextended
for backwards compatibility. This isintended as a manner to opt out of the extended range when the
large-dates
feature is enabled.When the
large-dates
feature is not enabled, the modifier has no effect.UtcDateTime
, which is semantically equivalent to anOffsetDateTime
with UTC as its offset. Theadvantage is that it is the same size as a
PrimitiveDateTime
and has improved operability withwell-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 timestampsas the Unix timestamp. The pre-existing module does this as an
i128
where ani64
wouldsuffice. This new module should be preferred.
Changed
error::Format
has had itssource()
implementation changed to no longer return a boxed valuefrom the
ComponentRange
variant. If you were explicitly expecting this, you will need to updateyour code. The method API remains unchanged.
[year repr:century]
supports single-digit values.format_into
methods accept?Sized
references.Miscellaneous
proven as uninhabited. The relevant fields are doc-hidden and not semver-guaranteed to remain as
such, though it is unlikely to change.
gains. Among the methods changed are
util::is_leap_year
util::weeks_in_year
Month::length
Date::to_calendar_date
Date::month
Date::day
Date::from_julian_day
Date::to_julian_day
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.