getTimeZone

Returns the timezone for the current request.

getTimeZone() → returns string

Examples sample code invoking the getTimeZone function

Set the timezone, then retrieve it.

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

Expected Result: Etc/UTC


Fork me on GitHub