Struct spinoso_time::ToA[][src]

pub struct ToA {
    pub sec: u32,
    pub min: u32,
    pub hour: u32,
    pub day: u32,
    pub month: u32,
    pub year: i32,
    pub wday: u32,
    pub yday: u32,
    pub isdst: bool,
    pub zone: Offset,
}
Expand description

Serialized representation of a timestamp using a ten-element array of datetime components.

[sec, min, hour, day, month, year, wday, yday, isdst, zone]

Fields

sec: u32

The second of the minute 0..=59 for the source time.

min: u32

The minute of the hour 0..=59 for the source time.

hour: u32

The hour of the day 0..=23 for the source time.

day: u32

The day of the month 1..=n for the source time.

month: u32

The month of the year 1..=12 for the source time.

year: i32

The year (including the century) for the source time.

wday: u32

An integer representing the day of the week, 0..=6, with Sunday == 0 for the source time.

yday: u32

An integer representing the day of the year, 1..=366 for the source time.

isdst: bool

Whether the source time occurs during Daylight Saving Time in its time zone.

zone: Offset

The timezone used for the source time.

Implementations

ToA represents ten-element array of values for time:

[sec, min, hour, day, month, year, wday, yday, isdst, zone]

A ten-element array of values for time:

[sec, min, hour, day, month, year, wday, yday, isdst, zone]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.