Xojo.Core.TimeZone.Constructor(name As Text)

From Xojo Documentation

Constructor
Xojo.Core.TimeZone.Constructor(name As Text)

Creates a time zone using the specified name. If the name is invalid, then an InvalidArgumentException is raised.

Notes

Refer to the List of tz database time zones on Wikipedia.

Sample Code

Create time zone for GMT:

Var gmt As New Xojo.Core.TimeZone("GMT")
Var ny As New Xojo.Core.TimeZone("America/New_York")
Var berlin As New Xojo.Core.TimeZone("Europe/Berlin")
Var tokyo Ad New Xojo.Core.TimeZone("Asia/Tokyo")