pub fn FileTimeToSystemTime(ft: &FILETIME) -> SysResult<SYSTEMTIME>Available on crate feature
kernel only.Expand description
FileTimeToSystemTime
function.
Note that the system time is UTC. In order to convert to local time, you
must also pass the returned SYSTEMTIME to
SystemTimeToTzSpecificLocalTime.
§Examples
use winsafe::{self as w, prelude::*};
let ft_utc = w::GetSystemTimeAsFileTime();
let st_utc = w::FileTimeToSystemTime(&ft_utc)?;
println!("{:04}-{:02}-{:02}",
st_utc.wYear, st_utc.wMonth, st_utc.wDay);