Tracking Issue for `Duration::div_duration_floor()` and `Duration::div_duration_ceil()`
Open
@max-heller is already working on this.
Since Dec 4, 2025.
C-tracking-issue
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(duration_integer_division)]
This is a tracking issue for https://github.com/rust-lang/libs-team/issues/706
Adds integer division methods for core::time::Duration paralleling Duration::div_duration_{f32,f64}().
Public API
// core::time
impl Duration {
const fn div_duration_floor(self, rhs: Self) -> u128;
const fn div_duration_ceil(self, rhs: Self) -> u128;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: rust-lang/libs-team#706
- Implementation: rust-lang/rust/pull/149582
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- None yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.