pub struct DateTime(/* private fields */);Expand description
Number of 100 ns ticks since 1601-01-01 UTC, as transmitted.
Implementations§
Source§impl DateTime
impl DateTime
pub fn null() -> Self
Sourcepub fn from_unix_timestamp_nanos(nanos: i128) -> Option<Self>
pub fn from_unix_timestamp_nanos(nanos: i128) -> Option<Self>
Construct a wire DateTime when the instant fits exactly on a 100 ns tick.
Sourcepub fn unix_timestamp_nanos(self) -> i128
pub fn unix_timestamp_nanos(self) -> i128
Exact timestamp in Unix nanoseconds, including values outside the application calendar.
pub fn ticks(self) -> i64
pub fn endtimes() -> Self
pub fn now() -> Self
Trait Implementations§
Source§impl BinaryDecodable for DateTime
impl BinaryDecodable for DateTime
Source§impl BinaryEncodable for DateTime
impl BinaryEncodable for DateTime
impl Copy for DateTime
impl Eq for DateTime
Source§impl Ord for DateTime
impl Ord for DateTime
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DateTime
impl PartialOrd for DateTime
impl StructuralPartialEq for DateTime
Source§impl VariantType for DateTime
impl VariantType for DateTime
Source§fn variant_type_id() -> VariantScalarTypeId
fn variant_type_id() -> VariantScalarTypeId
Built-in type identifier used when declaring a variable or array element.
Auto Trait Implementations§
impl Forget for DateTime
impl Freeze for DateTime
impl Move for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more