Trait IsoCal

Source
pub trait IsoCal {
    // Required methods
    fn iso_ordinal(self) -> u32;
    fn iso_ordinal0(self) -> u32;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl IsoCal for DateTime<FixedOffset>

Source§

fn iso_ordinal(self) -> u32

Returns the day of the day year.

The return value ranges from 1 to 371. (The last day of year differs by years.)

Source§

fn iso_ordinal0(self) -> u32

Returns the day of the day year.

The return value ranges from 0 to 370. (The last day of year differs by years.)

Source§

impl IsoCal for DateTime<Local>

Source§

fn iso_ordinal(self) -> u32

Returns the day of the day year.

The return value ranges from 1 to 371. (The last day of year differs by years.)

Source§

fn iso_ordinal0(self) -> u32

Returns the day of the day year.

The return value ranges from 0 to 370. (The last day of year differs by years.)

Source§

impl IsoCal for DateTime<Utc>

Source§

fn iso_ordinal(self) -> u32

Returns the day of the day year.

The return value ranges from 1 to 371. (The last day of year differs by years.)

Source§

fn iso_ordinal0(self) -> u32

Returns the day of the day year.

The return value ranges from 0 to 370. (The last day of year differs by years.)

Source§

impl IsoCal for NaiveDate

Source§

fn iso_ordinal(self) -> u32

Returns the day of the day year.

The return value ranges from 1 to 371. (The last day of year differs by years.)

Source§

fn iso_ordinal0(self) -> u32

Returns the day of the day year.

The return value ranges from 0 to 370. (The last day of year differs by years.)

Implementors§