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
Post a Comment