[−][src]Struct winstructs::timestamp::WinTimestamp
https://docs.microsoft.com/en-us/windows/desktop/api/minwinbase/ns-minwinbase-filetime Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).
Example
let raw_timestamp: &[u8] = &[0x53, 0xC7, 0x8B, 0x18, 0xC5, 0xCC, 0xCE, 0x01]; let timestamp = WinTimestamp::from_reader(raw_timestamp).unwrap(); assert_eq!(format!("{}", timestamp), "2013-10-19 12:16:53.276040"); assert_eq!(format!("{:?}", timestamp), "2013-10-19 12:16:53.276040");
Methods
impl WinTimestamp
[src]
pub fn from_reader<R: Read>(reader: &mut R) -> Result<WinTimestamp, Error>
[src]
pub fn to_datetime(&self) -> DateTime<Utc>
[src]
Trait Implementations
impl Clone for WinTimestamp
[src]
fn clone(&self) -> WinTimestamp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for WinTimestamp
[src]
impl Display for WinTimestamp
[src]
Auto Trait Implementations
impl Send for WinTimestamp
impl Sync for WinTimestamp
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,