pub fn whole_and_frac(d: Duration) -> (Unit, f64)Expand description
Pairs a duration’s selected whole unit with a floating-point scale component.
For days through minutes, the second value is a whole-second remainder
divided by the selected unit, so subsecond data is discarded. Seconds use
milliseconds within the current second, discarding submillisecond data;
milliseconds use microseconds, discarding nanoseconds; microseconds use
nanoseconds; nanoseconds return 0.0.