pub struct DateTimeParts {
    pub year: i32,
    pub month: u8,
    pub day: u8,
    pub hour: u8,
    pub minute: u8,
    pub second: u8,
    pub millisecond: u32,
    pub microsecond: u32,
    pub nanosecond: u32,
}
Expand description

The parts that make up a date/time.

Fields

year: i32month: u8day: u8hour: u8minute: u8second: u8millisecond: u32microsecond: u32nanosecond: u32

Implementations

Computes the total number of nanoseconds from summing the millisecond, microsecond, and nanosecond parts.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Attempts to convert DateTimeParts into an Epoch

The type returned in the event of a conversion error.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.