Skip to main content
Version: Java (Groovy)

microsToSeconds

microsToSeconds returns the number of seconds equivalent to the specified microseconds value.

Syntax

microsToSeconds(micros)

Parameters

ParameterTypeDescription
microslong

The amount of microseconds to convert to seconds.

Returns

The number of seconds equivalent to the specified microseconds value. Null input values will return NULL_LONG.

Examples

micros = 5000
println micros

println microsToSeconds(micros)