Trait temporenc::Time
[−]
[src]
pub trait Time { fn hour(&self) -> Option<u8>; fn minute(&self) -> Option<u8>; fn second(&self) -> Option<u8>; }
Represents the Temporenc "Time" component.
Required Methods
fn hour(&self) -> Option<u8>
If present, the number of hours. In range [0, 23].
fn minute(&self) -> Option<u8>
If present, the number of minutes. In range [0, 59].
fn second(&self) -> Option<u8>
If present, the number of seconds. In range [0, 60].
Implementors
impl Time for TimeOnly
impl Time for DateTime
impl Time for DateTimeOffset
impl Time for DateTimeSubSecond
impl Time for DateTimeSubSecondOffset