Trait sqldatetime::DateTime

source ·
pub trait DateTime {
    // Required methods
    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>;
    fn date(&self) -> Option<Date>;
}
Expand description

General trait for all date time types.

Required Methods§

source

fn year(&self) -> Option<i32>

Extracts year from date time.

source

fn month(&self) -> Option<i32>

Extracts month from date time.

source

fn day(&self) -> Option<i32>

Extracts day from date time.

source

fn hour(&self) -> Option<i32>

Extracts hour from date time.

source

fn minute(&self) -> Option<i32>

Extracts minute from date time.

source

fn second(&self) -> Option<f64>

Extracts second from date time.

source

fn date(&self) -> Option<Date>

Extracts second from date time.

Implementors§