secondsToMinutes()
Returns the number of minutes equal to the given number of seconds.
Usage
import { secondsToMinutes } from 'easy-dates';
secondsToMinutes(seconds);
Prop types
prop | type | required | default |
---|---|---|---|
seconds | number | yes | null |
Examples
secondsToMinutes(60); // 1
secondsToMinutes(3600); // 60
secondsToMinutes('2'); // Error