getDurationMs
Stentor API Reference / stentor-utils/src / getDurationMs
Function: getDurationMs()
getDurationMs(
amount,format):number
Defined in: packages/stentor-utils/src/date-time/getDurationMs.ts:29
Converts a duration and format into milliseconds.
Parameters​
amount​
number
The amount of time
format​
DurationFormat
The format of the time (e.g., "minutes", "hours")
Returns​
number
The duration in milliseconds