nanosToSeconds
nanosToSeconds
returns the number of seconds equivalent to the specified nanoseconds value.
Syntax
nanosToSeconds(nanos)
Parameters
Parameter | Type | Description |
---|---|---|
nanos | long | The amount of nanoseconds to convert to seconds. |
Returns
The number of seconds equivalent to the specified nanoseconds value. Null input values will return NULL_LONG
.
Examples
nanos = 5000
println nanos
println nanosToSeconds(nanos)
- Log