Time zone difference getting unexpected
I am trying to get the time zone difference using windows API. I am using
the code
TIME_ZONE_INFORMATION TimeZoneInfo;
GetTimeZoneInformation( &TimeZoneInfo );
float TimeZoneDifference = -( float(TimeZoneInfo.Bias) / 60 );
I am using (UTC +5:30) time zone.
Output: 5.50000 Expected output: 5.30000
No comments:
Post a Comment