-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for duration_constructors_lite #140881
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Milestone
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(duration_constructors_lite)]This is a tracking issue for
duration_constructors_lite.duration_constructors_liteimplements the non-controversial bits ofduration_constructors.Public API
std::time::Durationfrom_mins(u64)from_hours(u64)History
(Remember to update the
S-tracking-*label when checking boxes.)duration_constructorsimplementation core: add Duration constructors #120307Durationconstructorsfrom_mins,from_hours,from_daysandfrom_weeks.from_daysandfrom_weekswrong too easy.CivilDurationtype to disambiguateDurationas the "standard/scientific" time duration its safer to avoid introducingfrom_daysandfrom_weekseven ifDurationexplicitly aims to model "standard/scientific".Steps
duration_constructors_litefeature #145135Unresolved Questions
from_daysand other larger quantities in the future.stdto help avoid mis-interpretingstd::time::Duration.Misc
I want to thank all folks who participated in #120301. It's not fun to argue online for so long, but very much needed to grow the language in a sound way as it's even harder to undo mistakes.
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩