Team:KAIST-Korea/Test Count
From 2011.igem.org
(Difference between revisions)
Line 25: | Line 25: | ||
var d_date = Date.parse(strfuture) - Date.parse(strnow); | var d_date = Date.parse(strfuture) - Date.parse(strnow); | ||
- | + | d_day = Math.floor(d_date / 86400000); | |
stmp = String(Math.floor((d_date % 86400000) / 3600000)); | stmp = String(Math.floor((d_date % 86400000) / 3600000)); | ||
d_hour = stmp.length == 1 ? "0" + stmp : stmp; | d_hour = stmp.length == 1 ? "0" + stmp : stmp; |
Revision as of 09:51, 8 July 2011