TimestampType

Trait TimestampType 

Source
trait TimestampType: ArrowPrimitiveType<Native = i64> {
    // Required method
    fn to_datetime_utc(value: i64) -> Result<DateTime<Utc>>;
}
Expand description

Trait for timestamp types to handle conversion to DateTime<Utc>

Required Methods§

Source

fn to_datetime_utc(value: i64) -> Result<DateTime<Utc>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TimestampType for TimestampMicrosecondType

Source§

fn to_datetime_utc(micros: i64) -> Result<DateTime<Utc>>

Source§

impl TimestampType for TimestampNanosecondType

Source§

fn to_datetime_utc(nanos: i64) -> Result<DateTime<Utc>>

Implementors§