var n=navigator.appName
var ns=(n=="Netscape")
var ie=(n=="Microsoft Internet Explorer")
if (ie)
{
now = new Date();
day = new Object();
month = new Object();
day[0] = "Sunday";
day[1] = "Monday";
day[2] = "Tuesday";
day[3] = "Wednesday";
day[4] = "Thursday";
day[5] = "Friday";
day[6] = "Saturday";
month[0] = "Jan";
month[1] = "Feb";
month[2] = "Mar";
month[3] = "Apr";
month[4] = "May";
month[5] = "Jun";
month[6] = "July";
month[7] = "Aug";
month[8] = "Sept";
month[9] = "Oct";
month[10] = "Nov";
month[11] = "Dec";
year = now.getYear();
if (year < 1000) year += 1900;
var str2=new String(now)
var str3=str2.substring(23,29)
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var seconds = currentTime.getSeconds()
if (hours < 10) {hours = "0" + hours}
if (minutes < 10){minutes = "0" + minutes}
if (seconds < 10){seconds = "0" + seconds}
if(hours > 11){meridian = "PM"}
else {meridian = "AM"}
var str1=month[now.getMonth()] + " " + now.getDate() +" "+"n"+" "+"n"+" " + year+" "+hours+": "+minutes+": "+seconds+meridian+"n"+" "+""+"n"+""+""
document.writeln(str1);
//document.writeln(str3)
var curDateTime = new Date();
var getgmt = (curDateTime.getTimezoneOffset()/60);
var fixme = getgmt.toFixed(2);
var str2=new String(fixme);
var substing=str2.substring(1,2);
var substing2=str2.substring(3,5);
var tempNumber = parseInt(substing2);
var numGMTMinutes = (tempNumber * 60)/100;
var getFloor = Math.floor(getgmt);
var findFloor = parseInt(getFloor) * -1;
if(numGMTMinutes == 0){numGMTMinutes = "00";}
document.write("GMT: " + findFloor + ":" + numGMTMinutes);
}
else if (ns)
{
now = new Date();
day = new Object();
month = new Object();
day[0] = "Sunday";
day[1] = "Monday";
day[2] = "Tuesday";
day[3] = "Wednesday";
day[4] = "Thursday";
day[5] = "Friday";
day[6] = "Saturday";
month[0] = "Jan";
month[1] = "Feb";
month[2] = "Mar";
month[3] = "Apr";
month[4] = "May";
month[5] = "Jun";
month[6] = "July";
month[7] = "Aug";
month[8] = "Sept";
month[9] = "Oct";
month[10] = "Nov";
month[11] = "Dec";
year = now.getYear();
if (year < 1000) year += 1900;
var str2=new String(now)
var str3=str2.substring(28,33)
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var seconds = currentTime.getSeconds()
if (hours < 10) {hours = "0" + hours}
if (minutes < 10){minutes = "0" + minutes}
if (seconds < 10){seconds = "0" + seconds}
if(hours > 11){meridian = "PM"}
else {meridian = "AM"}
var str1=month[now.getMonth()] + " " + now.getDate() +" "+"n"+" "+"n"+" " + year+" "+hours+": "+minutes+": "+seconds+meridian+"n"+" "+""+"n"+""+""
document.writeln(str1);
var curDateTime = new Date();
var getgmt = (curDateTime.getTimezoneOffset()/60);
var fixme = getgmt.toFixed(2);
var str2=new String(fixme);
var substing=str2.substring(1,2);
var substing2=str2.substring(3,5);
var tempNumber = parseInt(substing2);
var numGMTMinutes = (tempNumber * 60)/100;
var getFloor = Math.floor(getgmt);
var findFloor = parseInt(getFloor) * -1;
if(numGMTMinutes == 0){numGMTMinutes = "00";}
document.write("GMT: " + findFloor + ":" + numGMTMinutes);
}
|