Menu
I am trying to do a stopwatch using decimals
Not 1:30 but 1,5 h
I get a number. How do I calculate this into decimals?
“`
start = new Date().getTime();
alert(start + ” wait a moment”)
updated = new Date().getTime();
diff = updated – start;
alert(diff + ” diff as decimals?”)