#[repr(transparent)]pub struct SystemTimeUTC(pub SYSTEMTIME);Expand description
Wraps SYSTEMTIME
The SYSTEMTIME struct can be UTC or local time, but SystemTimeUTC should only be used for
UTC.
Tuple Fields§
§0: SYSTEMTIMEImplementations§
Source§impl SystemTimeUTC
impl SystemTimeUTC
Sourcepub fn now() -> SystemTimeUTC
pub fn now() -> SystemTimeUTC
Get current system time in UTC via GetSystemTime()
“Because the system time can be adjusted either forward or backward, do not compare system time readings to determine elapsed time.”
Sourcepub fn to_file_time(&self) -> Result<FileTime, Win32Error>
pub fn to_file_time(&self) -> Result<FileTime, Win32Error>
Convert to FileTime via SystemTimeToFileTime()
Trait Implementations§
Source§impl Clone for SystemTimeUTC
impl Clone for SystemTimeUTC
Source§fn clone(&self) -> SystemTimeUTC
fn clone(&self) -> SystemTimeUTC
Returns a duplicate 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 SystemTimeUTC
impl Debug for SystemTimeUTC
Source§impl Display for SystemTimeUTC
Format as ISO 8601 date and time: YYYY-MM-DDThh:mm:ss.fffZ
impl Display for SystemTimeUTC
Format as ISO 8601 date and time: YYYY-MM-DDThh:mm:ss.fffZ
impl Copy for SystemTimeUTC
Auto Trait Implementations§
impl Freeze for SystemTimeUTC
impl RefUnwindSafe for SystemTimeUTC
impl Send for SystemTimeUTC
impl Sync for SystemTimeUTC
impl Unpin for SystemTimeUTC
impl UnwindSafe for SystemTimeUTC
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