alert( Math.ceil(new Date().getTime()/1000) );
This returns a timestamp, to the second. I want it rounded up to the closest 3 seconds. It should remain the same for 3 seconds then jump up 3 more seconds.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.