setTimeZone

Change the timezone definition for the current request

setTimezone(timezone) → returns string

Argument Reference

timezone string
Required

The timezone to set to.

Examples
Sample code invoking the setTimeZone function

setTimezone("CET");
writeoutput(getTimezoneInfo().timezone);

Expected Result: CET


Fork me on GitHub