Trait PdsDate

Source
pub trait PdsDate {
    // Required methods
    fn year(&self) -> i16;
    fn month(&self) -> u8;
    fn day(&self) -> u8;
    fn game_fmt(&self) -> PdsDateFormatter;
    fn iso_8601(&self) -> PdsDateFormatter;
}
Expand description

Common set of methods between all the date components

Required Methods§

Source

fn year(&self) -> i16

Return the year

Source

fn month(&self) -> u8

Returns the month. Range: [1, 12]

Source

fn day(&self) -> u8

Return the day

Source

fn game_fmt(&self) -> PdsDateFormatter

Formats the date in the game format

Source

fn iso_8601(&self) -> PdsDateFormatter

Formats the date in an iso8601 format

Implementors§