Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Daylight Savings Time
#10

(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

Reply


Messages In This Thread
Daylight Savings Time - by danner - 05-11-2017, 08:22
RE: Daylight Savings Time - by danner - 05-11-2017, 09:17
RE: Daylight Savings Time - by danner - 05-11-2017, 09:38
RE: Daylight Savings Time - by AllanG - 05-11-2017, 11:32
RE: Daylight Savings Time - by danner - 05-11-2017, 12:16
RE: Daylight Savings Time - by hornychz - 05-11-2017, 12:26
RE: Daylight Savings Time - by werk_ag - 05-11-2017, 16:19
RE: Daylight Savings Time - by danner - 06-11-2017, 01:18
RE: Daylight Savings Time - by danner - 06-11-2017, 01:28
RE: Daylight Savings Time - by werk_ag - 06-11-2017, 01:55
RE: Daylight Savings Time - by danner - 06-11-2017, 02:30
RE: Daylight Savings Time - by werk_ag - 06-11-2017, 03:34
RE: Daylight Savings Time - by danner - 07-11-2017, 12:55
RE: Daylight Savings Time - by werk_ag - 07-11-2017, 15:56
RE: Daylight Savings Time - by danner - 07-11-2017, 23:12
RE: Daylight Savings Time - by hornychz - 07-11-2017, 23:45
RE: Daylight Savings Time - by danner - 08-11-2017, 03:58
RE: Daylight Savings Time - by werk_ag - 12-11-2017, 01:50



Users browsing this thread: 1 Guest(s)