Skip to main content
Version: Java (Groovy)

nanosToMicros

nanosToMicros returns the equivalent number of microseconds from a given nanosecond value.

Syntax

nanosToMicros(nanos)

Parameters

ParameterTypeDescription
nanoslong

The amount of nanoseconds to convert to microseconds.

Returns

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

Examples


nanos = nanosToMicros(1641013200000)
println nanos