/////////////////////////////////////////////////////////
function Changetz () {
city.innerhtml = CLD. TZ.VALUE.SUBSTR (6);
var pos = Math.floor (CLD. TZ.value.substr (0,3));
if (pos<0) pos+=24;
pos*=-10;
World.style.left = pos;
}
function tick () {
var today;
Today = new Date ();
clock.innerhtml = Today.tolocalestring ();
clock2.innerhtml = Timeadd (today.togmtstring (), CLD. Tz.value);
Window.settimeout ("tick ()", 1000);
}
-->
</SCRIPT>
<script language=vbscript>
<!--
' ===== counted world time
Function Timeadd (utc,t)
Dim Plusminus, DST, y
If Left (t,1) = "-" Then Plusminus =-1 Else plusminus = 1
Utc=right (Utc,len (UTC)-5)
Utc=left (Utc,len (UTC)-4)
y = year (UTC)
Timeadd=dateadd ("n", (Cint (mid t,2,2) *60 + Cint (Mid (t,4,2))) * Plusminus, UTC)
' American daylight saving period: April The first star Day from 00:00 to October the last one Sunday 00:00
If Mid (t,6,1) = "*" and DateSerial (y,4 (9-weekday (DateSerial (y,4,1)) mod 7) <= Timeadd and DateSerial (Y,10,31-WEEKD Ay (DateSerial (y,10,31))) >= Timeadd Then
Timeadd=dateadd ("H", 1, Timeadd)
tsave.innerhtml = "R"
Tsave.style.color= "Red"
Else
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.