Search the Community
Showing results for tags 'dst'.
-
Hello, I'm facing some trouble with the function _Date_Time_GetTimeZoneInformation() after last sunday the summer time (Daylight Savings Time) has ended for my timezone. Help File for Returns an array with the following format: [0] - Daylight savings setting. Can be one of the following: -1 - Failure 0 - Daylight savings time is not used in the current time zone 1 - Daylight savings time operating with standard time 2 - Daylight savings time operating with daylight savings time [1] - The current bias for local time translation on this computer. The bias is the difference in minutes between Coordinated Universal Time (UTC) and local time. All translations between UTC and local time use the following formula: UTC = local time + bias [2] - The description for standard time [3] - A $tagSYSTEMTIME structure that contains a date and local time when the transition from daylight saving time to standard time occurs. [4] - The bias value to be used during local time translations that occur during standard time. This value is added to the value of the Bias to form the bias used during standard time. In most time zones, this value is zero. [5] - The description for daylight saving time [6] - A $tagSYSTEMTIME structure that contains a date and local time when the transition from standard time to daylight saving time occurs. [7] - The bias value to be used during local time translations that occur during daylight saving time. This value is added to the value of the Bias member to form the bias used during daylight saving time. In most time zones this value is –60. for most Windows installations the switching for summer / winter time is set to "automatically switch...", so it's for the box, that's giving the trouble right now. The result array seems to just show, what the values are for "this time zone" and the additional offset for "DST", if I get it correctly, but *NOT* wether DST is currently *ACTIVE OR NOT*, isn't it? So howto *DETECT*, if DST is currently active or not?