Struct irox_time::datetime::UTCDateTime
source · pub struct UTCDateTime { /* private fields */ }Expand description
Represents a Gregorian Date and Time in UTC
Implementations§
source§impl UTCDateTime
impl UTCDateTime
sourcepub fn new(date: Date, time: Time) -> UTCDateTime
pub fn new(date: Date, time: Time) -> UTCDateTime
New UTC Date and Time
sourcepub fn now() -> UTCDateTime
pub fn now() -> UTCDateTime
Returns the current instant in time as reported by the local system clock.
Trait Implementations§
source§impl From<&Timestamp<UnixEpoch>> for UTCDateTime
impl From<&Timestamp<UnixEpoch>> for UTCDateTime
source§fn from(value: &UnixTimestamp) -> Self
fn from(value: &UnixTimestamp) -> Self
Converts to this type from the input type.
source§impl From<Timestamp<UnixEpoch>> for UTCDateTime
impl From<Timestamp<UnixEpoch>> for UTCDateTime
source§fn from(value: UnixTimestamp) -> Self
fn from(value: UnixTimestamp) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for UTCDateTime
impl Send for UTCDateTime
impl Sync for UTCDateTime
impl Unpin for UTCDateTime
impl UnwindSafe for UTCDateTime
Blanket Implementations§
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