Sealighter
Sealighter copied to clipboard
timestamp is a few hours less than the actual time
Call FileTimeToLocalFileTime before calling FileTimeToSystemTime to correct the time zone of FILETIME
std::string convert_filetime_string ( const FILETIME from ) { SYSTEMTIME stime; FILETIME localFileTime; FileTimeToLocalFileTime(std::addressof(from), std::addressof(localFileTime)); ::FileTimeToSystemTime(std::addressof(localFileTime), std::addressof(stime)); std::string to = convert_systemtime_string(stime); return to; }