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

fn hour(&self) -> i8[src]

The hour of the day.

fn minute(&self) -> i8[src]

The minute of the hour.

fn second(&self) -> i8[src]

The second of the minute.

fn millisecond(&self) -> i16[src]

The millisecond of the second.

Loading content...

Implementors

impl TimePiece for LocalDateTime[src]

impl TimePiece for LocalTime[src]

impl TimePiece for OffsetDateTime[src]

impl<'a> TimePiece for ZonedDateTime<'a>[src]

Loading content...