setInterval By the minute On the minute

Posted by bushman on Stack Overflow See other posts from Stack Overflow or by bushman
Published on 2010-04-05T17:14:37Z Indexed on 2010/04/05 17:23 UTC
Read the original article Hit count: 394

Filed under:
|

To the javascript enthusiasts,

how would you program a setTimeOut (or setInterval) handle to fire by the minute on the minute. So for example, if it is the 51 second of the current time, then fire it in 8 seconds, if it is the 14th second then fire it in 46 seconds

thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about settimeout