Is return value of GetTimeZoneInformation also valid for dynamic DST zones?
问题 Following function which I have written in Delphi (however, my question is not specific to Delphi) does output the current UTC unix timestamp: function CurrentUnixTimeUTC: int64; var tzi: TTimeZoneInformation; begin // Get the current unix timestamp in local time. Result := DateTimeToUnix(Now); // First, add the DST specific bias case GetTimeZoneInformation(tzi) of TIME_ZONE_ID_INVALID: RaiseLastOSError; TIME_ZONE_ID_UNKNOWN: ; // Unknown what to do. We simply don't apply any bias. TIME_ZONE