Trait datetime::TimePiece [] [src]

pub trait TimePiece {
    fn hour(&self) -> i8;
fn minute(&self) -> i8;
fn second(&self) -> i8;
fn millisecond(&self) -> i16; }

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

Required Methods

The hour of the day.

The minute of the hour.

The second of the minute.

The millisecond of the second.

Implementors