millisToSeconds
millisToSeconds
returns the equivalent number of seconds from a given millisecond value.
Syntax
millisToSeconds(millis)
Parameters
Parameter | Type | Description |
---|---|---|
millis | long | The amount of milliseconds to convert to seconds. |
Returns
The number of seconds equivalent to the specified milliseconds. Null input values will return NULL_LONG
.
Examples
nanos = millisToSeconds(1641013200000)
println nanos
- Log