Trait sqldatetime::DateTime[][src]

pub trait DateTime {
    fn year(&self) -> Option<i32>;
fn month(&self) -> Option<i32>;
fn day(&self) -> Option<i32>;
fn hour(&self) -> Option<i32>;
fn minute(&self) -> Option<i32>;
fn second(&self) -> Option<f64>; }
Expand description

General trait for all date time types.

Required methods

Extracts year from date time.

Extracts month from date time.

Extracts day from date time.

Extracts hour from date time.

Extracts minute from date time.

Extracts second from date time.

Implementors