C language function:GetTimeZoneInformationForYear sample codes

Search sample code in the internet.It is the result.


TITLE : Why does my TIME_ZONE_INFORMATION have the wrong DST cutover date? – The Old New Thing
I have a program that calls GetTimeZoneInformationForYear, and it looks like it's returning incorrect DST transition dates. For example, GetTimeZoneInformationForYear(2010, NULL, &tzi) is returning March 2nd as the tzi.DaylightDate value, instead of the Expected March 14th date. The current time zone is Pacific Time........
http://blogs.msdn.microsoft.com/oldnewthing/20110311-00/@p=11243


TITLE : Why does my TIME_ZONE_INFORMATION have the wrong DST cutover date? – The Old New Thing
Shouldn't GetTimeZoneInformationForYear(2012, &dtzi, &tzi); assume 2012 in *dtzi's sense*, not in the local time sense nor UTC sense?.......
http://blogs.msdn.microsoft.com/oldnewthing/20110311-00/@p=11243
TITLE : GetSystemTimeAsFileTime function (Windows)
BOOL WINAPI GetTimeZoneInformationForYear(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb540851(v=vs.85).aspx
TITLE : Get Timezone Information in VBA (Excel) - Stack Overflow
dst = GetTimeZoneInformationForYear(Year(lpDateLocal), lpDTZI, lpTZI) offset = lpTZI.Bias + IIf(lpDateLocal >= SystemTimeToSerialTime(lpTZI.DaylightDate) And lpDateLocal < SystemTimeToSerialTime(lpTZI.StandardDate), lpTZI.DaylightBias, lpTZI.StandardBias).......
http://stackoverflow.com/questions/3120915/get-timezone-information-in-vba-excel
TITLE : A Time Zone API supplement
* GetTimeZoneInformationForYear().......
http://www.codeguru.com/cpp/cpp/date_time/routines/article.php/c19485/A-Time-Zone-API-supplement.htm
search Google

https://www.google.com/#q=GetTimeZoneInformationForYear