hoursToMilliseconds()
Returns the number of milliseconds in the specified number of hours.
Usage
import { hoursToMilliseconds } from 'easy-dates';
hoursToMilliseconds(hours)
Prop types
prop | type | required | default |
---|---|---|---|
hours | number | yes | n/a |
Examples
hoursToMilliseconds(1) // 3600000
hoursToMilliseconds(2) // 7200000