// This filename extention is PHP because in a few places server time is called with PHP code. // To know if summer time or not. //UK DST bit. var uk101 = ''; var uk102 = ''; var uk111 = '27 March, 2011 01:00:00'; var uk112 = '30 October, 2011 02:00:00'; var uk121 = '25 March, 2012 01:00:00'; var uk122 = '28 October, 2012 02:00:00'; var uk131 = '31 March, 2013 01:00:00'; var uk132 = '27 October, 2013 02:00:00'; var uk141 = '30 March, 2014 01:00:00'; var uk142 = '26 October, 2014 02:00:00'; var uk151 = '29 March, 2015 01:00:00'; var uk152 = '25 October, 2015 02:00:00'; var uk161 = '27 March, 2016 01:00:00'; var uk162 = '30 October, 2016 02:00:00'; var uk171 = '26 March, 2017 01:00:00'; var uk172 = '29 October, 2017 02:00:00'; var uk181 = '25 March, 2018 01:00:00'; var uk182 = '28 October, 2018 02:00:00'; var uk191 = '31 March, 2019 01:00:00'; var uk192 = '27 October, 2019 02:00:00'; // next decade var uk201 = '29 March, 2020 01:00:00'; var uk202 = '25 October, 2020 02:00:00'; var uk211 = '28 March, 2021 01:00:00'; var uk212 = '31 October, 2021 02:00:00'; var uk221 = '27 March, 2022 01:00:00'; var uk222 = '30 October, 2022 02:00:00'; var uk231 = '26 March, 2023 01:00:00'; var uk232 = '29 October, 2023 02:00:00'; var uk241 = '31 March, 2024 01:00:00'; var uk242 = '27 October, 2024 02:00:00'; var uk251 = '30 March, 2025 01:00:00'; var uk252 = '26 October, 2025 02:00:00'; var uk261 = '29 March, 2026 01:00:00'; var uk262 = '25 October, 2026 02:00:00'; var uk271 = '28 March, 2027 01:00:00'; var uk272 = '31 October, 2027 02:00:00'; var uk281 = '26 March, 2028 01:00:00'; var uk282 = '29 October, 2028 02:00:00'; var uk291 = '25 March, 2029 01:00:00'; var uk292 = '28 October, 2029 02:00:00'; var UKservertimestring='May 06, 2024 09:38:41'; this.UKlocaltime=this.UKserverdate=new Date(UKservertimestring); this.uk101=new Date(uk101); this.uk102=new Date(uk102); this.uk102= this.uk102 - 1000*60*60; //to use official dst ending hour. this.uk111=new Date(uk111); this.uk112=new Date(uk112); this.uk112= this.uk112 - 1000*60*60; //to use official dst ending hour. this.uk121=new Date(uk121); this.uk122=new Date(uk122); this.uk122= this.uk122 - 1000*60*60; this.uk131=new Date(uk131); this.uk132=new Date(uk132); this.uk132= this.uk132 - 1000*60*60; this.uk141=new Date(uk141); this.uk142=new Date(uk142); this.uk142= this.uk142 - 1000*60*60; this.uk151=new Date(uk151); this.uk152=new Date(uk152); this.uk152= this.uk152 - 1000*60*60; this.uk161=new Date(uk161); this.uk162=new Date(uk162); this.uk162= this.uk162 - 1000*60*60; this.uk171=new Date(uk171); this.uk172=new Date(uk172); this.uk172= this.uk172 - 1000*60*60; this.uk181=new Date(uk181); this.uk182=new Date(uk182); this.uk182= this.uk182 - 1000*60*60; this.uk191=new Date(uk191); this.uk192=new Date(uk192); this.uk192= this.uk192 - 1000*60*60; // next decade this.uk201=new Date(uk201); this.uk202=new Date(uk202); this.uk202= this.uk202 - 1000*60*60; this.uk211=new Date(uk211); this.uk212=new Date(uk212); this.uk212= this.uk212 - 1000*60*60; this.uk221=new Date(uk221); this.uk222=new Date(uk222); this.uk222= this.uk222 - 1000*60*60; this.uk231=new Date(uk231); this.uk232=new Date(uk232); this.uk232= this.uk232 - 1000*60*60; this.uk241=new Date(uk241); this.uk242=new Date(uk242); this.uk242= this.uk242 - 1000*60*60; this.uk251=new Date(uk251); this.uk252=new Date(uk252); this.uk252= this.uk252 - 1000*60*60; this.uk261=new Date(uk261); this.uk262=new Date(uk262); this.uk262= this.uk262 - 1000*60*60; this.uk271=new Date(uk271); this.uk272=new Date(uk272); this.uk272= this.uk272 - 1000*60*60; this.uk281=new Date(uk281); this.uk282=new Date(uk282); this.uk282= this.uk282 - 1000*60*60; this.uk291=new Date(uk291); this.uk292=new Date(uk292); this.uk292= this.uk292 - 1000*60*60; var UKdaylightsaving = 0; if (this.uk101 < this.UKlocaltime && this.uk102 > this.UKlocaltime || this.uk111 < this.UKlocaltime && this.uk112 > this.UKlocaltime || this.uk121 < this.UKlocaltime && this.uk122 > this.UKlocaltime || this.uk131 < this.UKlocaltime && this.uk132 > this.UKlocaltime || this.uk141 < this.UKlocaltime && this.uk142 > this.UKlocaltime || this.uk151 < this.UKlocaltime && this.uk152 > this.UKlocaltime || this.uk161 < this.UKlocaltime && this.uk162 > this.UKlocaltime || this.uk171 < this.UKlocaltime && this.uk172 > this.UKlocaltime || this.uk181 < this.UKlocaltime && this.uk182 > this.UKlocaltime || this.uk191 < this.UKlocaltime && this.uk192 > this.UKlocaltime || this.uk201 < this.UKlocaltime && this.uk202 > this.UKlocaltime || this.uk211 < this.UKlocaltime && this.uk212 > this.UKlocaltime || this.uk221 < this.UKlocaltime && this.uk222 > this.UKlocaltime || this.uk231 < this.UKlocaltime && this.uk232 > this.UKlocaltime || this.uk241 < this.UKlocaltime && this.uk242 > this.UKlocaltime || this.uk251 < this.UKlocaltime && this.uk252 > this.UKlocaltime || this.uk261 < this.UKlocaltime && this.uk262 > this.UKlocaltime || this.uk271 < this.UKlocaltime && this.uk272 > this.UKlocaltime || this.uk281 < this.UKlocaltime && this.uk282 > this.UKlocaltime || this.uk291 < this.UKlocaltime && this.uk292 > this.UKlocaltime) { UKdaylightsaving = 0; } // Eo UK DST bit. var londonDstCorrec = UKdaylightsaving; var correc = UKdaylightsaving; // for new showLocalTime at bottom. var utcDetailHour = 60; //-> function tinydst(dst, std, setCityOffset,y11,y12,y21,y22,y31,y32,y41,y42,y51,y52,y61,y62,y71,y72,y81,y82,y91,y92,y201,y202,y211,y212,y221,y222,y231,y232,y241,y242,y251,y252,y261,y262,y271,y272,y281,y282,y291,y292){ var cityOffset = setCityOffset*utcDetailHour; var offSetMinutes = londonDstCorrec + cityOffset; this.y11 = new Date(y11); this.y12 = new Date(y12); this.y12= this.y12 - 1000*60*60; //Possible to use official dst ending hour. this.y21 = new Date(y21); this.y22 = new Date(y22); this.y22= this.y22 - 1000*60*60; this.y31 = new Date(y31); this.y32 = new Date(y32); this.y32= this.y32 - 1000*60*60; this.y41 = new Date(y41); this.y42 = new Date(y42); this.y42= this.y42 - 1000*60*60; this.y51 = new Date(y51); this.y52 = new Date(y52); this.y52= this.y52 - 1000*60*60; this.y61 = new Date(y61); this.y62 = new Date(y62); this.y62= this.y62 - 1000*60*60; this.y71 = new Date(y71); this.y72 = new Date(y72); this.y72= this.y72 - 1000*60*60; this.y81 = new Date(y81); this.y82 = new Date(y82); this.y82= this.y82 - 1000*60*60; this.y91 = new Date(y91); this.y92 = new Date(y92); this.y92= this.y92 - 1000*60*60; // next decade this.y201 = new Date(y201); this.y202 = new Date(y202); this.y202= this.y202 - 1000*60*60; this.y211 = new Date(y211); this.y212 = new Date(y212); this.y212= this.y212 - 1000*60*60; this.y221 = new Date(y221); this.y222 = new Date(y222); this.y222= this.y222 - 1000*60*60; this.y231 = new Date(y231); this.y232 = new Date(y232); this.y232= this.y232 - 1000*60*60; this.y241 = new Date(y241); this.y242 = new Date(y242); this.y242= this.y242 - 1000*60*60; this.y251 = new Date(y251); this.y252 = new Date(y252); this.y252= this.y252 - 1000*60*60; this.y261 = new Date(y261); this.y262 = new Date(y262); this.y262= this.y262 - 1000*60*60; this.y271 = new Date(y271); this.y272 = new Date(y272); this.y272= this.y272 - 1000*60*60; this.y281 = new Date(y281); this.y282 = new Date(y282); this.y282= this.y282 - 1000*60*60; this.y291 = new Date(y291); this.y292 = new Date(y292); this.y292= this.y292 - 1000*60*60; summerTime = 0; var summerTimeInfo = (""); var servertimestring = 'May 06 2024 09:38:41'; this.localtime = this.serverdate = new Date(servertimestring); this.localtime.setTime(this.serverdate.getTime()+offSetMinutes*60*1000) // Location offset from GMT. if (this.localtime > this.y11 && this.localtime < this.y12 || this.localtime > this.y21 && this.localtime < this.y22 || this.localtime > this.y31 && this.localtime < this.y32 || this.localtime > this.y41 && this.localtime < this.y42 || this.localtime > this.y51 && this.localtime < this.y52 || this.localtime > this.y61 && this.localtime < this.y62 || this.localtime > this.y71 && this.localtime < this.y72 || this.localtime > this.y81 && this.localtime < this.y82 || this.localtime > this.y91 && this.localtime < this.y92 || this.localtime > this.y201 && this.localtime < this.y202 || this.localtime > this.y211 && this.localtime < this.y212 || this.localtime > this.y221 && this.localtime < this.y222 || this.localtime > this.y231 && this.localtime < this.y232 || this.localtime > this.y241 && this.localtime < this.y242 || this.localtime > this.y251 && this.localtime < this.y252 || this.localtime > this.y261 && this.localtime < this.y262 || this.localtime > this.y271 && this.localtime < this.y272 || this.localtime > this.y281 && this.localtime < this.y282 || this.localtime > this.y291 && this.localtime < this.y292){ (summerTime = 1); } if (summerTime == 1){ summerTimeInfo = dst; } else { summerTimeInfo = std; } return summerTimeInfo; } // end of UTC/GMT Details part function setCookie24h(){ setCookie('change12h24','24',365); var change12h24 = getCookie("change12h24"); if (change12h24 == null) { alert("Your current browser settings indicate that cookies are disabled. Cookies are needed to activate 24h format."); location.reload(); } else { location.reload(); } } function setCookie12h(){ setCookie('change12h24','12',365); var change12h24 = getCookie("change12h24"); if (change12h24 == null) { alert("Your current browser settings indicate that cookies are disabled. Cookies are needed to change the time format."); location.reload(); } else { location.reload(); } } function get12h24(){ var change12h24 = getCookie("change12h24"); if (change12h24 != null) { if (change12h24 == "12") { display = "timezone12"; document.getElementById("radio12h").checked=true; radioOn(); } else if (change12h24 == "24") { display = "timezone24"; document.getElementById("radio24h").checked=true; radioOn(); } } else { display = "timezone12"; document.getElementById("radio12h").checked=true; radioOn(); } } function radioOn() { var theRadios = document.getElementsByName('radio12h24'); for(var i = 0; i < theRadios.length; i++) { theRadios[i].parentNode.className = 'h2412off'; theRadios[i].onclick = function() { radioOn(); } if(theRadios[i].checked == 1) { theRadios[i].parentNode.className = 'h2412on'; } } }