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,
}

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

impl ToA[src]

pub const ELEMENTS: usize[src]

ToA represents ten-element array of values for time:

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

#[must_use]pub fn to_tuple(self) -> (u32, u32, u32, u32, u32, i32, u32, u32, bool, Offset)[src]

A ten-element array of values for time:

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

Trait Implementations

impl Clone for ToA[src]

impl Copy for ToA[src]

impl Debug for ToA[src]

impl Eq for ToA[src]

impl From<Time> for ToA[src]

impl Hash for ToA[src]

impl PartialEq<ToA> for ToA[src]

impl StructuralEq for ToA[src]

impl StructuralPartialEq for ToA[src]

impl TryFrom<ToA> for Time[src]

type Error = ComponentOutOfRangeError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for ToA

impl Send for ToA

impl Sync for ToA

impl Unpin for ToA

impl UnwindSafe for ToA

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.