Converts a time duration (days, hours, minutes, seconds) into total milliseconds.
Number of days.
Hour of the day (0–23).
0–23
Minute value (0–59).
0–59
Second value (0–59).
The equivalent duration in milliseconds.
Will throw an error if any parameter is negative.
getMilliseconds(1); // 86400000 (1 day)getMilliseconds(0, 1); // 3600000 (1 hour)getMilliseconds(0, 0, 30, 15); // 1815000 (30 minutes 15 seconds) Copy
getMilliseconds(1); // 86400000 (1 day)getMilliseconds(0, 1); // 3600000 (1 hour)getMilliseconds(0, 0, 30, 15); // 1815000 (30 minutes 15 seconds)
Converts a time duration (days, hours, minutes, seconds) into total milliseconds.