core: add Duration constructors by djc · Pull Request #120307 · rust-lang/rust

@djc

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.

labels

Jan 24, 2024

@djc djc mentioned this pull request

Jan 24, 2024

3 tasks

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Feb 11, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 11, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 11, 2024

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Feb 11, 2024
Rollup merge of rust-lang#120307 - djc:duration-constructors, r=Mark-Simulacrum

core: add Duration constructors

Add more `Duration` constructors.

Tracking issue: rust-lang#120301.

These match similar convenience constructors available on both `chrono::Duration` and `time::Duration`.

What's the best ordering for these with respect to the existing constructors?