devela::all

Type Alias TimeSplitHourSecNorm

Source
pub type TimeSplitHourSecNorm = TimeSplit<(), (), (), u64, u8, u8, (), (), ()>;
Available on crate feature time only.
Expand description

A time split from hours to seconds, normalized (128b size, 80b payload).

Aliased Type§

struct TimeSplitHourSecNorm {
    pub y: (),
    pub mo: (),
    pub d: (),
    pub h: u64,
    pub m: u8,
    pub s: u8,
    pub ms: (),
    pub us: (),
    pub ns: (),
}

Fields§

§y: ()

Years.

§mo: ()

Months.

§d: ()

Days.

§h: u64

Hours.

§m: u8

Minutes.

§s: u8

Seconds.

§ms: ()

Milliseconds.

§us: ()

Microseconds.

§ns: ()

Nanoseconds.

Implementations§

Source§

impl TimeSplitHourSecNorm

Source

pub const fn from_duration(duration: Duration) -> Self

Converts a Duration into a TimeSplitHourSec.

Excess days or longer periods are converted into additional hours.