Creates a duration in hours (converted to milliseconds).
WHY: Provides a more readable way to specify durations in hours.
number of hours
milliseconds equivalent
setTimeout(fn, hours(1)); // 1 hour = 3600000msconst sessionExpiry = hours(24); // 24 hour session Copy
setTimeout(fn, hours(1)); // 1 hour = 3600000msconst sessionExpiry = hours(24); // 24 hour session
Creates a duration in hours (converted to milliseconds).
WHY: Provides a more readable way to specify durations in hours.