Skip to main content
Version: Java (Groovy)

millisToNanos

millisToNanos returns the equivalent number of nanoseconds from a given millisecond value.

Syntax

millisToNanos(millis)

Parameters

ParameterTypeDescription
millislong

The amount of milliseconds to convert to nanoseconds.

Returns

The equivalent number of nanoseconds as the specified milliseconds. Null input values will return NULL_LONG.

Examples

nanos = millisToNanos(1641013200000)
println nanos