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