Struct questdb::ingress::TimestampMicros
source · pub struct TimestampMicros(_);
Expand description
A i64
timestamp expressed as microseconds since the UNIX epoch (UTC).
The number can’t be negative (i.e. can’t be before 1970-01-01 00:00:00).
Examples
use questdb::ingress::TimestampMicros;
let ts = TimestampMicros::new(1659548204354448)?;
or
use questdb::ingress::TimestampMicros;
use std::convert::TryInto;
let ts: TimestampMicros = std::time::SystemTime::now().try_into()?;
Implementations§
Trait Implementations§
source§impl Clone for TimestampMicros
impl Clone for TimestampMicros
source§fn clone(&self) -> TimestampMicros
fn clone(&self) -> TimestampMicros
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimestampMicros
impl Debug for TimestampMicros
source§impl From<TimestampMicros> for SystemTime
impl From<TimestampMicros> for SystemTime
source§fn from(timestamp: TimestampMicros) -> Self
fn from(timestamp: TimestampMicros) -> Self
Converts to this type from the input type.