An independent FILETIME parsing / conversion crate
The need for this came up when attempting to parse raw FILETIME structures from binary files.
```rs use filetime_type::FileTime; use chrono::{DateTime, Utc};
// Create FileTime from current system time let ft_now = FileTime::now();
// Parsing from i64 let fti64 = FileTime::fromi64(128930364000001000); println!("Since FILETIME-Epoch: secs: {} leap-nanosecs: {}", fti64.seconds(), fti64.nanoseconds());
// Parsing from raw bytes let rawfiletime: [u8; 8] = [0xCE, 0xEB, 0x7D, 0x1A, 0x61, 0x59, 0xCE, 0x01]; let ft = FileTime::from(rawfiletime);
// Into raw bytes let raw: [u8; 8] = FileTime::now().into();
// Parsing from DateTime
Add the following line to your Cargo.toml
file.
toml
[dependencies]
filetime_type = "0.1"
Documentation: https://docs.rs/filetime_type