The subsecond component is taken into account when parsing the unix_timestamp component. If
data is conflicting, the subsecond value takes precedence.
Parsing a Time with only the hour component is now supported. The minute and second, and
subsecond components are assumed to be zero.
Changed
The minimum supported Rust version is now 1.67.0.
The debug output for Parsed has been improved.
When parsing, invalid values are now rejected sooner. Previously, the entire input would be parsed
before being rejected in the final step. Now, invalid values are rejected as soon as they are
encountered. This affects the error variant returned, which may cause minor breakage for any code
(incorrectly) relying on the exact error variant.
When parsing a Time, an error is returned if components are present but not consecutive. For
example, if hours and seconds are present, minutes will not be assumed to be zero.
Fixed
The implementation of Duration::checked_div could return a slightly incorrect result in some
cases. This has been fixed.
0.3.23 [2023-07-08]
Added
Date::next_occurrence
Date::prev_occurrence
Date::nth_next_occurrence
Date::nth_prev_occurrence
Weekday::nth_prev
Month::nth_next
Month::nth_prev
Changed
The minimum supported Rust version policy has been updated. See the README for
details.
Fixed
Duration::abs correctly returns Duration::MAX when near the minimum value. The nanoseconds
value was previously incorrect.
Compliance with ISO 8601 has been improved. Previously, a UTC offset would be incorrectly rejected
in some cases.
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 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.21 to 0.3.24.
Release notes
Sourced from time's releases.
Changelog
Sourced from time's changelog.
... (truncated)
Commits
cdc85da
v0.3.24 release227b6f8
Gate methods as necessary8060100
Fix implementation ofDuration::checked_div
a9fea9f
Use ranged integers internally forDuration
04936ee
Useensure_ranged!
forUtcOffset
7e95cb2
Use ranged integers internally forTime
2cb18f8
Fix rustdoc lint70cbb41
Use ranged integers internally forUtcOffset
72d4f94
Reject missing component between valid componentsbbea8cd
Add support for only hours in time format with tests (#604)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 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)