Team:KAIST-Korea/Test Count

From 2011.igem.org

(Difference between revisions)
Line 17: Line 17:
             var nHour = now.getHours();
             var nHour = now.getHours();
             var nMin = now.getMinutes();
             var nMin = now.getMinutes();
-
            var nSec = now.getSeconds();
 
-
            var stmp = String(now.getMilliseconds());
 
-
            var nmSec = (stmp.length == 1 ? "00" + stmp : stmp.length == 2 ? "0" + stmp : stmp);
 
             var strnow = arrMonth[nMonth] + " " + nDay + ", " + nYear + " " + nHour + ":" + nMin + ":" + nSec;
             var strnow = arrMonth[nMonth] + " " + nDay + ", " + nYear + " " + nHour + ":" + nMin + ":" + nSec;
             var strfuture = arrMonth[arrDate[1] - 1] + " " + (arrDate[2] + 1) + ", " + arrDate[0] + " " + arrTime[0] + ":" + arrTime[1] + ":" + arrTime[2];
             var strfuture = arrMonth[arrDate[1] - 1] + " " + (arrDate[2] + 1) + ", " + arrDate[0] + " " + arrTime[0] + ":" + arrTime[1] + ":" + arrTime[2];

Revision as of 09:54, 8 July 2011