pub type TimeSplitYearSec<Y, MO, D, H, M, S> = TimeSplit<Y, MO, D, H, M, S, (), (), ()>;
Available on crate feature
time
only.Expand description
A time split from years to seconds.
Aliased Type§
struct TimeSplitYearSec<Y, MO, D, H, M, S> {
pub y: Y,
pub mo: MO,
pub d: D,
pub h: H,
pub m: M,
pub s: S,
pub ms: (),
pub us: (),
pub ns: (),
}
Fields§
§y: Y
Years.
mo: MO
Months.
d: D
Days.
h: H
Hours.
m: M
Minutes.
s: S
Seconds.
ms: ()
Milliseconds.
us: ()
Microseconds.
ns: ()
Nanoseconds.
Implementations§
Source§impl<Y, MO, D, H, M, S> TimeSplitYearSec<Y, MO, D, H, M, S>
impl<Y, MO, D, H, M, S> TimeSplitYearSec<Y, MO, D, H, M, S>
Sourcepub const fn new_year_sec(y: Y, mo: MO, d: D, h: H, m: M, s: S) -> Self
pub const fn new_year_sec(y: Y, mo: MO, d: D, h: H, m: M, s: S) -> Self
Returns a new TimeSplitYearSec
.