[][src]Struct tiberius::time::DateTime

pub struct DateTime { /* fields omitted */ }

A presentation of datetime type in the server.

Warning

It isn't recommended to use this type directly. For dealing with datetime, use the chrono feature of this crate and its NaiveDateTime type.

Implementations

impl DateTime[src]

pub fn new(days: i32, seconds_fragments: u32) -> Self[src]

Construct a new DateTime instance.

pub fn days(self) -> i32[src]

Days since 1st of January, 1900 (including the negative range until 1st of January, 1753).

pub fn seconds_fragments(self) -> u32[src]

1/300 of a second, so a value of 300 equals 1 second (since midnight).

Trait Implementations

impl Clone for DateTime[src]

impl Copy for DateTime[src]

impl Debug for DateTime[src]

impl Eq for DateTime[src]

impl PartialEq<DateTime> for DateTime[src]

impl StructuralEq for DateTime[src]

impl StructuralPartialEq for DateTime[src]

Auto Trait Implementations

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> Instrument 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.