00:00:00:00
00:00:00:00
Out of context: Reply #9
- Started
- Last post
- 10 Responses
- unfittoprint0
Make a checkTime function. Inside it create a date object, evaluate its components by using
getSeconds(), getMilliseconds(), getMinutes(), getHour(). If you want a 00 format, check if each component string has a length > 1. If not add a "0". Join everything in the end to give you the 00:00:00 format.Now use the checkTime function in a setInterval loop like:
timeLoop = setInterval(this, "checkTime", 30)