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