-
Notifications
You must be signed in to change notification settings - Fork 0
Durations #22
Copy link
Copy link
Open
Labels
c:cliComponent: Changes the Command Line Interface (CLI).Component: Changes the Command Line Interface (CLI).c:plugin-systemComponent: Changes the plugin system or plugin related.Component: Changes the plugin system or plugin related.
Milestone
Metadata
Metadata
Assignees
Labels
c:cliComponent: Changes the Command Line Interface (CLI).Component: Changes the Command Line Interface (CLI).c:plugin-systemComponent: Changes the plugin system or plugin related.Component: Changes the plugin system or plugin related.
Goal
Represents a duration. A duration is represented as ISO8601 string.
Use Cases
durationdurationdurationdurationdurationdurationdurationsomethingeverydurationTasks
duration(string)duration_formatto_duration() -> std::time::Durationfrom_iso8601_duration(iso8601_duration_str: String)parse(duration_with_time_unit: String)(https://crates.io/crates/fundu#time-units)as_secs() -> u64(https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs)as_millis() -> u128(https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis)from_millis(millis) -> resultfrom_secs(sec) -> resultfrom_secs(sec) -> resultadd(lhs, rhs) -> resultsub(lhs, rhs) -> resultmul(lhs, rhs) -> resultdiv(lhs, rhs) -> resultReference
Crates