Team:KULeuven/5 July 2008
From 2008.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
// arg determines whether you take yesterday (arg = 0) or tomorrow (arg = 1) | // arg determines whether you take yesterday (arg = 0) or tomorrow (arg = 1) | ||
function date(numeric_date, arg) { | function date(numeric_date, arg) { | ||
- | + | switch(arg) { | |
- | + | case 0: numeric_date -= 86400*1000; | |
+ | case 1: numeric_date += 86400*1000; | ||
+ | } | ||
var date = new Date(); | var date = new Date(); |
Revision as of 21:51, 15 July 2008
<< return to notebook |