Trait jomini::common::PdsDate[][src]

pub trait PdsDate {
    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

Return the year

Returns the month. Range: [1, 12]

Return the day

Formats the date in the game format

Formats the date in an iso8601 format

Implementors