Update Rust crate time to 0.3.36 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
time (source) | dependencies | patch |
0.3.30 -> 0.3.36
|
Release Notes
time-rs/time (time)
v0.3.36
# Fixed
-
FormatItem
can be used as part of an import path. See #675 for details.
v0.3.35
Added
Duration::checked_neg
-
ext::InstantExt
, which provides methods for usingtime::Duration
withstd::time::Instant
Changed
-
Instant
is deprecated. It is recommended to usestd::time::Instant
directly, importingtime::ext::InstantExt
for interoperability withtime::Duration
. -
FormatItem
has been renamed toBorrowedFormatItem
, avoiding confusion withOwnedFormatItem
. An alias has been added for backwards compatibility.
Fixed
- The weekday is optional when parsing RFC2822.
- The range of sub-second values in
Duration
is documented correctly. The previous documentation contained an off-by-one error. - Leap seconds are now correctly handled when parsing ISO 8601.
v0.3.34
Fixed
Computing the local offset on Windows works again. It was broken in some cases in v0.3.32 and v0.3.33.
v0.3.33
Fixed
Builds targeting wasm32-unknown-unknown
now work again.
v0.3.32
Added
- Methods to replace the day of the year.
Date::replace_ordinal
PrimitiveDateTime::replace_ordinal
OffsetDateTime::replace_ordinal
- Modules to treat an
OffsetDateTime
as a Unix timestamp with subsecond precision for serde.time::serde::timestamp::milliseconds
time::serde::timestamp::microseconds
time::serde::timestamp::nanoseconds
Changed
-
Duration::time_fn
is deprecated.
v0.3.31
Added
OffsetDateTime::new_in_offset
OffsetDateTime::new_utc
Changed
- The valid range of
UtcOffset
has been expanded from ±23:59:59 to ±25:59:59. This is to support the full POSIX range while permitting infallible negation.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Óscar García Amor