Skip to content

Update Rust crate time to 0.3.36 - autoclosed

Óscar García Amor requested to merge renovate/time-0.x into master

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

Compare Source

# Fixed
  • FormatItem can be used as part of an import path. See #​675 for details.

v0.3.35

Compare Source

Added
  • Duration::checked_neg
  • ext::InstantExt, which provides methods for using time::Duration with std::time::Instant
Changed
  • Instant is deprecated. It is recommended to use std::time::Instant directly, importing time::ext::InstantExt for interoperability with time::Duration.
  • FormatItem has been renamed to BorrowedFormatItem, avoiding confusion with OwnedFormatItem. 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

Compare Source

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

Compare Source

Fixed

Builds targeting wasm32-unknown-unknown now work again.

v0.3.32

Compare Source

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

Compare Source

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

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • 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

Merge request reports