Struct date::Date [] [src]

pub struct Date {
    pub year: u32,
    pub month: u8,
    pub day: u8,
}

A representation of a day in the Gregorian calendar.

Fields

The year.

The month.

The day.

Methods

impl Date
[src]

Create a date by the specified year, month, and day.

Return the UTC date specified in seconds counting from the Unix epoch.

Return the UTC date specified in seconds counting from January 1, 1904.

Trait Implementations

impl Clone for Date
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Date
[src]

impl Default for Date
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Date
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Date
[src]

impl Ord for Date
[src]

This method returns an Ordering between self and other. Read more

impl Debug for Date
[src]

Formats the value using the given formatter.

impl Display for Date
[src]

Formats the value using the given formatter. Read more

impl PartialOrd for Date
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more