<script type= "Text/javascript" >
Calendar = new Date ();
Day = Calendar.getday ();
month = Calendar.getmonth ();
Date = Calendar.getdate ();
Year = Calendar.getyear ();
if (year>) year = 1900 + year;
cent = parseint (year/100);
g = year% 19;
K = parseint ((CENT-17)/25);
i = (Cent-parseint (CENT/4)-parseint ((CENT-K)/3) + 19*g + 15)% 30;
i = I-parseint (I/28) * (1-parseint (I/28) *parseint (29/(i+1)) *parseint ((21-g)/11));
J = (year + parseint (YEAR/4) + i + 2-cent + parseint (CENT/4))% 7;
L = i-j;
Emonth = 3 + parseint ((L + 40)/44);
Edate = L + 28-31*parseint ((EMONTH/4));
emonth--;
var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var monthname =
New Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
document.write ("Current time:" +year + "Year");
document.write (Monthname[month]);
document.write (date + "Day" + "");
document.write (dayname[day]+ "");
document.write ("<span id= ' clock ' ></span>");
var Now,hours,minutes,seconds,timevalue;
function Showtime () {
now = new Date ();
Hours = Now.gethours ();
minutes = Now.getminutes ();
seconds = Now.getseconds ();
TimeValue = (Hours >= 12)? "Afternoon": "Morning";
TimeValue + = ((Hours >) hours-12:hours) + "point";
TimeValue + = ((minutes <10)? " 0 ":") + minutes+ "min";
TimeValue + = ((seconds <10)? " 0 ":") + seconds+ "seconds";
clock.innerhtml = TimeValue;
SetTimeout ("Showtime ()", 100);
}
Showtime ();
</script>
Web page time synchronization local time