Struct questdb::ingress::TimestampNanos
source · pub struct TimestampNanos(_);
Expand description
A i64
timestamp expressed as nanoseconds 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::TimestampNanos;
let ts = TimestampNanos::new(1659548315647406592)?;
or
use questdb::ingress::TimestampNanos;
use std::convert::TryInto;
let ts: TimestampNanos = std::time::SystemTime::now().try_into()?;
Implementations§
Trait Implementations§
source§impl Clone for TimestampNanos
impl Clone for TimestampNanos
source§fn clone(&self) -> TimestampNanos
fn clone(&self) -> TimestampNanos
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 more