Skip to content

[pull] main from RustPython:main#578

Merged
pull[bot] merged 1 commit intoMu-L:mainfrom
RustPython:main
Jan 23, 2024
Merged

[pull] main from RustPython:main#578
pull[bot] merged 1 commit intoMu-L:mainfrom
RustPython:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jan 23, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

In cpython, they use `_PyTime_ROUND_FLOOR` to read time.
But in RustPython, we use `[Duration::from_secs_f64](https://doc.rust-lang.org/std/time/struct.Duration.html#method.try_from_secs_f64)` to read time.

Therefore, RustPython isn't affected by the rounding issue in the way
that cpython does. We can safely ignore the `0.5*1e-9` bit in
`ns_to_sec` function.
@pull pull bot added the ⤵️ pull label Jan 23, 2024
@pull pull bot merged commit 6917b4c into Mu-L:main Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant