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