Is there a Win32 or MFC function that converts a local timestamp specified as year, month, day, hour, minute, second to a local time FILETIME structure?
CTime will accept a FILETIME and will give you back year, month, day, hour, minute, second. And you can construct a CTime by specifying year, month, day, hour, minute, second, but it will not return a FILETIME.
SystemTimeToFileTime() does this conversion, but it assumes SYSTEMTIME is UTC and FILETIME is local, so it also does timezone conversion, but in the wrong direction for my need. There's also a SystemTimeToTzSpecificLocalTime() function, but again it's converting the UTC to local. I could use this if there was a function to convert local to UTC.