Repository navigation
refactor: simplify system_time_to_timestamp - #14980
Merged
Merged
Conversation
|
GNU testsuite comparison: |
xtqqczze
force-pushed
the
uu-stat-system-time-to-timestamp
branch
from
September 30, 2026 13:29
9a9cac3 to
0d8bffc
Compare
cakebaker
reviewed
Oct 3, 2026
xtqqczze
force-pushed
the
uu-stat-system-time-to-timestamp
branch
from
October 9, 2026 22:19
0d8bffc to
f3973e0
Compare
xtqqczze
force-pushed
the
uu-stat-system-time-to-timestamp
branch
from
October 17, 2026 23:04
f3973e0 to
0562aa7
Compare
xtqqczze
force-pushed
the
uu-stat-system-time-to-timestamp
branch
2 times, most recently
from
October 29, 2026 09:46
76dd0aa to
6585a74
Compare
sylvestre
reviewed
Nov 8, 2026
| Err(e) => { | ||
| let d = e.duration(); | ||
| if d.subsec_nanos() == 0 { | ||
| (-(d.as_secs() as i64), 0) |
Contributor
There was a problem hiding this comment.
could you please add a test with a whole-second pre-epoch time (e.g. UNIX_EPOCH - Duration::from_secs(2)) to cover this branch? thanks
elide the `time < UNIX_EPOCH` branch by inlining `system_time_to_sec`
sylvestre
force-pushed
the
uu-stat-system-time-to-timestamp
branch
from
November 10, 2026 21:00
6585a74 to
9c25b1a
Compare
Contributor
|
Thanks for your PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
elide the
time < UNIX_EPOCHbranch by inliningsystem_time_to_sec