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

fn year(&self) -> Option<i32>[src]

Extracts year from date time.

fn month(&self) -> Option<i32>[src]

Extracts month from date time.

fn day(&self) -> Option<i32>[src]

Extracts day from date time.

fn hour(&self) -> Option<i32>[src]

Extracts hour from date time.

fn minute(&self) -> Option<i32>[src]

Extracts minute from date time.

fn second(&self) -> Option<f64>[src]

Extracts second from date time.

Implementors

impl DateTime for sqldatetime::Date[src]

fn year(&self) -> Option<i32>[src]

fn month(&self) -> Option<i32>[src]

fn day(&self) -> Option<i32>[src]

fn hour(&self) -> Option<i32>[src]

fn minute(&self) -> Option<i32>[src]

fn second(&self) -> Option<f64>[src]

impl DateTime for IntervalDT[src]

fn year(&self) -> Option<i32>[src]

fn month(&self) -> Option<i32>[src]

fn day(&self) -> Option<i32>[src]

fn hour(&self) -> Option<i32>[src]

fn minute(&self) -> Option<i32>[src]

fn second(&self) -> Option<f64>[src]

impl DateTime for IntervalYM[src]

fn year(&self) -> Option<i32>[src]

fn month(&self) -> Option<i32>[src]

fn day(&self) -> Option<i32>[src]

fn hour(&self) -> Option<i32>[src]

fn minute(&self) -> Option<i32>[src]

fn second(&self) -> Option<f64>[src]

impl DateTime for sqldatetime::OracleDate[src]

fn year(&self) -> Option<i32>[src]

fn month(&self) -> Option<i32>[src]

fn day(&self) -> Option<i32>[src]

fn hour(&self) -> Option<i32>[src]

fn minute(&self) -> Option<i32>[src]

fn second(&self) -> Option<f64>[src]

impl DateTime for Time[src]

fn year(&self) -> Option<i32>[src]

fn month(&self) -> Option<i32>[src]

fn day(&self) -> Option<i32>[src]

fn hour(&self) -> Option<i32>[src]

fn minute(&self) -> Option<i32>[src]

fn second(&self) -> Option<f64>[src]

impl DateTime for Timestamp[src]

fn year(&self) -> Option<i32>[src]

fn month(&self) -> Option<i32>[src]

fn day(&self) -> Option<i32>[src]

fn hour(&self) -> Option<i32>[src]

fn minute(&self) -> Option<i32>[src]

fn second(&self) -> Option<f64>[src]