chore(deps): update rust crate time to v0.3.44 #286
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.41
->0.3.44
Release Notes
time-rs/time (time)
v0.3.44
Compare Source
Fixed
PrimitiveDateTime
,UtcDateTime
, andOffsetDateTime
with differing signs (i.e.one negative and one positive year) would return the inverse result of what was expected. This was
introduced in v0.3.42 and has been fixed.
wasm-bindgen
enabledserde_json
.This has been fixed by explicitly specifying the type in the relevant locations.
v0.3.43
Compare Source
Added
rand
0.9Fixed
convert
module, any use ofper
with types that were not the same (such asNanosecond::per(Second)
) would not compile due to a bug. This has been fixed.v0.3.42
Compare Source
Added
Time::duration_until
Time::duration_since
per_t
method for all types intime::convert
. This is similar to the existingper
method, butcan return any of the primitive numeric types that can represent the result. This will cut down on
as
casts while ensuring correctness. Type inference isn't perfect, so you may need to provide atype annotation in some situations.
impl PartialOrd for Month
andimpl Ord for Month
; this assumes the months are in the same yearSystemTimeExt
trait, adding methods for checked arithmetic withtime::Duration
and obtainingthe difference between two
SystemTime
s as atime::Duration
UtcDateTime
withrand
(this was inadvertently omitted previously)impl core::error::Error
for all error types (now available when thestd
feature is disabled)thread-safe.
#[track_caller]
has been added to all relevant methods.Changed
itoa
has been removed, as the standard library now has similar functionalityby default.
deterministic, avoiding any subtle differences between platforms or compiler versions.
Fixed
Previously, it could be off by one nanosecond due to floating point imprecision.
OffsetDateTime::to_offset
andUtcDateTime::to_offset
has beenfixed. The bug could result in a value that was invalid. It was unlikely to ever occur in
real-world code, as it involved passing a UTC offset that has never been used in any location.
Miscellaneous
typical use cases of
format_description!
.Time
,PrimitiveDateTime
,UtcDateTime
, andOffsetDateTime
. The first three have gains of approximately 85% (i.e. 6× faster).#[inline]
.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 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.