How do I figure Daylight Savings Status?
Sharpdog
Posts: 7
I am trying to figure out in my code whether we are currently in Daylight Savings or in Standard Time. My code is correctly setting my clocks according to whether or not it is DST (summer time) but I have yet to determine how my code can know what time of the year it is.
The CLKMGR_IS_DAYLIGHTSAVINGS_ON() function tells me the mode I have set, and the
CLKMGR_GET_DAYLIGHTSAVINGS_OFFSET() function tells me 1:00:00 (one hour) for the amount that DST will change the time.
The simplest way I can think of is to set the Daylight Savings mode to OFF, check the time, then set it back to On and compare the two numbers.
Does anyone have a better way?
The CLKMGR_IS_DAYLIGHTSAVINGS_ON() function tells me the mode I have set, and the
CLKMGR_GET_DAYLIGHTSAVINGS_OFFSET() function tells me 1:00:00 (one hour) for the amount that DST will change the time.
The simplest way I can think of is to set the Daylight Savings mode to OFF, check the time, then set it back to On and compare the two numbers.
Does anyone have a better way?
0
Comments
If you are using i!-TimeManager, channel 3 indicates if DST is active.
Paul
Enter the dates in the webinterface of the AMX NI-xxxx.
Daylight saving is supported by the firmware.
Switch from winter to summertime:
@ the last sundaymorning in march. The time will be changed from 02:00 to 03:00
Switch from summer to wintertime:
@ the last sundaymorning in october. The time will be chanched from 03:00 to 02:00
thats it.
It would be great if we could have this feature in RMS. I dropped i!-TM once we moved to RMS, since RMS looked after the time syncing. I would find such a DTS on/off flag quite useful.
Roger McLean
Swinburne University
http://www.amxforums.com/showthread.php?7543-Run-daily-at-specific-time&post=#7