TimePiece

Trait TimePiece 

Source
pub trait TimePiece {
    // Required methods
    fn hour(&self) -> i8;
    fn minute(&self) -> i8;
    fn second(&self) -> i8;
    fn millisecond(&self) -> i16;
}
Expand description

The time piece trait is used for date and time values that have time components of hours, minutes, and seconds.

Required Methods§

Source

fn hour(&self) -> i8

The hour of the day.

Source

fn minute(&self) -> i8

The minute of the hour.

Source

fn second(&self) -> i8

The second of the minute.

Source

fn millisecond(&self) -> i16

The millisecond of the second.

Implementors§