Enum tidb_query_datatype::codec::mysql::time::Tz[][src]

pub enum Tz {
    Offset(FixedOffset),
    Name(Tz),
    Local(Local),
}

A time zone represented by either offset (i.e. +8) or name (i.e. Asia/Shanghai). In addition, local time zone is also valid.

Variants

Offset(FixedOffset)

A time zone specified by offset seconds.

Name(Tz)

A time zone specified by name (in IANA database).

Local(Local)

A local time zone.

Implementations

impl Tz[src]

pub fn from_offset(secs: i64) -> Option<Self>[src]

Constructs a time zone from the offset in seconds.

pub fn from_tz_name(name: &str) -> Option<Self>[src]

Constructs a time zone from the name. If the specified time zone name is system, a local time zone will be constructed.

pub fn utc() -> Self[src]

Constructs a UTC time zone.

pub fn local() -> Self[src]

Constructs a local time zone.

Trait Implementations

impl Clone for Tz[src]

impl Debug for Tz[src]

impl Display for Tz[src]

impl TimeZone for Tz[src]

type Offset = TzOffset

An associated offset type. This type is used to store the actual offset in date and time types. The original TimeZone value can be recovered via TimeZone::from_offset. Read more

Auto Trait Implementations

impl RefUnwindSafe for Tz

impl Send for Tz

impl Sync for Tz

impl Unpin for Tz

impl UnwindSafe for Tz

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<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]