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