06-11-2017, 01:55
(06-11-2017, 01:28)danner Wrote: So is this correct? The "2" meaning change the time at 0200?
Code:// -------------------------------------------------------------------------------------- // Define rules for Auto Summer Time Display, and clock adjustment // -------------------------------------------------------------------------------------- // Example for Australia Eastern Time Zone (Sydney, Melbourne) // TimeChangeRule aEDT = {"AEDT", First, Sun, Oct, 2, 660}; //UTC + 11 hours // TimeChangeRule aEST = {"AEST", First, Sun, Apr, 3, 600}; //UTC + 10 hours // Timezone myTZ(aEDT, aEST); TimeChangeRule usEDT = {"USEDT", Second, Sun, Mar, 2, -240}; //UTC - 4hours TimeChangeRule usEST = {"USEST", First, Sun, Nov, 2, -300}; //UTC - 5hours Timezone myTZ(usEDT, usEST);
Yes, that is correct! The info on my previous post is wrong, sorry...
Please refer to the readme file, included in the TimeZone library

