Skip to content

milliseconds

Converts a number to equivalent milliseconds.

milliseconds(x:number) -> duration

This function returns milliseconds equivalent to a number, i.e., number * 1ms.

The number to convert.

years, months, weeks, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds