Trait hoi4save::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§