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
sourceimpl Clone for TimestampMicros
impl Clone for TimestampMicros
sourcefn clone(&self) -> TimestampMicros
fn clone(&self) -> TimestampMicros
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimestampMicros
impl Debug for TimestampMicros
sourceimpl From<TimestampMicros> for SystemTime
impl From<TimestampMicros> for SystemTime
sourcefn from(timestamp: TimestampMicros) -> Self
fn from(timestamp: TimestampMicros) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<SystemTime> for TimestampMicros
impl TryFrom<SystemTime> for TimestampMicros
impl Copy for TimestampMicros
Auto Trait Implementations
impl RefUnwindSafe for TimestampMicros
impl Send for TimestampMicros
impl Sync for TimestampMicros
impl Unpin for TimestampMicros
impl UnwindSafe for TimestampMicros
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more