Struct odbc_iter::odbc_type::UnixTimestamp
source · pub struct UnixTimestamp(_);
Expand description
SqlTimestamp
type that can be created from number of seconds since epoch as represented by f64
value.
Implementations§
source§impl UnixTimestamp
impl UnixTimestamp
pub fn as_naive_date_time(&self) -> NaiveDateTime
pub fn into_inner(self) -> SqlTimestamp
Trait Implementations§
source§impl Debug for UnixTimestamp
impl Debug for UnixTimestamp
source§impl From<NaiveDateTime> for UnixTimestamp
impl From<NaiveDateTime> for UnixTimestamp
source§fn from(value: NaiveDateTime) -> UnixTimestamp
fn from(value: NaiveDateTime) -> UnixTimestamp
Converts to this type from the input type.
source§impl From<UnixTimestamp> for Value
impl From<UnixTimestamp> for Value
source§fn from(value: UnixTimestamp) -> Value
fn from(value: UnixTimestamp) -> Value
Converts to this type from the input type.
source§impl From<f64> for UnixTimestamp
impl From<f64> for UnixTimestamp
source§fn from(ts: f64) -> UnixTimestamp
fn from(ts: f64) -> UnixTimestamp
Converts to this type from the input type.