var DSTstart = new Date(year,4-1,NthDay(1,1,4,year),2,0,0); var DSTend = new Date(year,10-1,NthDay(-1,1,10,year),2,0,0);
var todayMS = getMS(today); var DSTstartMS = getMS(DSTstart); var DSTendMS = getMS(DSTend);
以上の記述を、下記の通りに書き換えます。
// The Date of Start Summer Time in EU (The End of Sunday in March) var DSTstarteu = new Date(year,3-1,NthDay(-1,1,3,year),2,0,0);
// The Date of Start Summer Time in USA (The First Sunday in April) var DSTstartus = new Date(year,4-1,NthDay(1,1,4,year),2,0,0);
// The Date of End Summer Time in USA and EU (The End of Sunday in Octber) var DSTend = new Date(year,10-1,NthDay(-1,1,10,year),2,0,0);
// The Date of End Summer Time in Australia (The End of Saturday in October) var DSTstartag = new Date(year,3-1,NthDay(-1,7,3,year),2,0,0);
// The Date of Start Summer Time in Australia (The End of Saturday in March) var DSTendag = new Date(year,10-1,NthDay(-1,7,10,year),2,0,0);
var todayMS = getMS(today); var DSTstarteuMS = getMS(DSTstarteu); var DSTstartusMS = getMS(DSTstartus); var DSTendMS = getMS(DSTend); var DSTstartagMS = getMS(DSTstartag); var DSTendagMS = getMS(DSTendag);