time - javascript hours to real hours -


i have piece of code this:

window.setinterval("reloadiframe();", 3000);                                         ^                                         * 

i want know if there chart anywhere can translate js time (*) real hours, 1 hour 2 hour 3 hour there way?

the parameter not accept hours, have multiply in millisecond.

1000 ms = 1 second 60 seconds = 1 minute 60 minutes = 1 hour  2 hours -> 60 min * 2 hours = 120 minutes * 60 = 7,200 seconds * 1000 = 7,200,000 ms 

the reverse division.

3000 ms / 1000 = 3 seconds / 60  = 0.05 minute / 60 = 0.00083 hours 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -