i'm trying to create a custom javascript clock where the clock follows real time (which is easy to do, i know), and then calculate how many seconds have gone by since midnight. then i want to be able to define what one second is in milliseconds, i.e. change how long one second lasts.
any tips? all help would be greatly appreciated.
Name:
Anonymous2014-01-27 8:10
Calculate milliseconds from midnight
Divide by NUmberOfMillisecondsInSecond
You get the result.
Name:
Anonymous2014-01-27 8:38
install BSD/Gentoo
Name:
Anonymous2014-01-27 9:36
i know how to calculate it, i just don't know how to make the clock calculate it by itself and then show this information. my plan is for it to be a working clock that counts 200000 seconds (they are 0,432 the length of a regular second) from midnight to midnight