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