getTimeZone

Returns the time zone for the current request.

getTimeZone() → returns string

Examples
Sample code invoking the getTimeZone function

Set the time zone, then retrieve it.

setTimeZone("Etc/UTC");
writeOutput(getTimeZone().timezone);

Expected Result: Etc/UTC


Fork me on GitHub