Struct gregor::DateTime [] [src]

pub struct DateTime<Tz: TimeZone> {
    pub naive: NaiveDateTime,
    pub time_zone: Tz,
}

Fields

Methods

impl<Tz: TimeZone> DateTime<Tz>
[src]

impl<Tz: UnambiguousTimeZone> DateTime<Tz>
[src]

Trait Implementations

impl<Tz: Eq + TimeZone> Eq for DateTime<Tz>
[src]

impl<Tz: PartialEq + TimeZone> PartialEq for DateTime<Tz>
[src]

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

This method tests for !=.

impl<Tz: Copy + TimeZone> Copy for DateTime<Tz>
[src]

impl<Tz: Clone + TimeZone> Clone for DateTime<Tz>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Tz: Debug + TimeZone> Debug for DateTime<Tz>
[src]

Formats the value using the given formatter.

impl<Tz: Default + TimeZone> From<UnixTimestamp> for DateTime<Tz>
[src]

Performs the conversion.