Page 1 of 1

Day of Week and DaylightSaving

Posted: Thu Oct 08, 2015 8:42 pm
by tiny
I needed for my project (4 channel timer) automatic summer time and standard time changeover. Even if I use the Internet time (NTP) to synchronize the RTC, I must GMT 01 or GMT 02 send them along. That's why I've written a routine that calculated by the RTC data the switching data.
This is based on an article in Wikipedia for the determination of the day of the week:

https://de.wikipedia.org/wiki/Wochentagsberechnung

From this, the routines "DayOfWeek.fcfx" and "Daylightsaving with DayOfWeek.fcfx" emerged.
DayOfWeek.fcfx
(6.88 KiB) Downloaded 681 times
DayLightSaving with DayOfWeek.fcfx
(10.48 KiB) Downloaded 681 times

Re: Day of Week and DaylightSaving

Posted: Thu Oct 08, 2015 9:33 pm
by medelec35
Hi Tiny,
Thank you for sharing your flowcharts with us.
You have done a great job in converting formula that Flowcode can use.
I'm also interested in calculating the day of the week and when clocks change so wrote a Blog on it if you want to see how I have done it?