Skip to content

Added DST rules for Western Europe and Australia#3

Open
Gambalunga wants to merge 12 commits intoandydoro:masterfrom
Gambalunga:master
Open

Added DST rules for Western Europe and Australia#3
Gambalunga wants to merge 12 commits intoandydoro:masterfrom
Gambalunga:master

Conversation

@Gambalunga
Copy link

I have further modified the library with a few changes and the addition of the DST rules for Australia.

In the logic for the change of DST I have eliminated, to a large degree the use of previousSunday using RTCTime.day() instead. It does not make any difference really but, in my opinion makes it more comprehensible. In some cases the use of previousSunday is still logical.

I have also changed the use of extern const char rulesDST[] to extern char rulesDST[]

This change allows me to vary the DST zone within the program by a user setting. A constant has no particular purpose in this case.

I have extensively tested the code but before publishing it I would suggest that you also test it. Obviously any logic errors can be corrected if someone lets me know of them.

Note that Great Britain, Ireland and Portugal change time at 1:00 AM local time not at 2:00 AM local time as in most of Europe.

Added Australian DST
Changed  const char rulesDST[] to char rulesDST[]
Added DST rules for Australia
Added DST rules for Australia
and other small improvements
Small improvements to the code
Added a new set of rules for Western Europe (UK, Ireland and Portugal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant