Skip to main content
Version: Java (Groovy)

secondsToMillis

secondsToMillis returns the number of milliseconds equivalent to the specified seconds value.

Syntax

secondsToMillis(seconds)

Parameters

ParameterTypeDescription
secondslong

The amount of seconds to convert to milliseconds.

Returns

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

Examples

seconds = 132

println secondsToMillis(seconds)