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.
0.3.31 [2023-12-19]
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.
0.3.30 [2023-10-13]
Added
powerfmt::smart_display::SmartDisplay has been added for the main types in the library. These
implementations ensure that values follow the requested fill, width, and alignment when using
format! or similar macros. Display is implemented in terms of SmartDisplay.
Fixed
Large values no longer wrap around in release mode when using NumericalDuration or
NumericalStdDuration.
0.3.29 [2023-09-24]
Added
Niche value optimization for Date has been added. Both Date and Option<Date> are four bytes.
Unit conversions have been added. It is now possible to write Second::per(Day), which returns
the number of seconds in one day. See the types in the [time::convert module] for more
information.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps time from 0.3.22 to 0.3.32.
Release notes
Sourced from time's releases.
Changelog
Sourced from time's changelog.
... (truncated)
Commits
ff3255f
v0.3.32 released3dd5c9
DeprecateDuration::time_fn
8a0dc70
Remove markdown files in favor of org-wide config980878b
Build docs using org-wide workflow, change audit4baf6b3
Remove documentation of deprecated feature flagbe932d8
Adds support to serialize and deserialize timestamps with different resolutio...bb397df
Commit Cargo.lock26b7c5f
Update alignment forParsed
in miri6747ebe
Update CI589ff6b
Update copyright yearDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show