Skip to main content
Version: Java (Groovy)

timeZone

timeZone returns the time zone for a time zone name, or the default time zone if no name is provided.

Syntax

timeZone()
timeZone(timeZone)

Parameters

ParameterTypeDescription
timeZonestring

The time zone name.

Returns

The corresponding time zone.

Examples

println timeZone()

println timeZone("ET")