Reputation: 84650
In Windows, if I need a TIME_ZONE_INFORMATION
struct for the current time zone, I can just call GetTimeZoneInformation. But what API do I use to get the TIME_ZONE_INFORMATION
for an arbitrary time zone that is not the current time zone?
Upvotes: 1
Views: 225
Reputation: 69724
Time zone information is on registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
. You can load TZI
value and it is exactly what you are looking for, see TIME_ZONE_INFORMATION structure, remarks.
Upvotes: 2