TimeZone.Constructor(name As String)

From Xojo Documentation

Constructor
TimeZone.Constructor(name As String)

New in 2019r2

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 TimeZone("GMT")
Var ny As New TimeZone("America/New_York")
Var berlin As TimeZone("Europe/Berlin")
Var tokyo As New TimeZone("Asia/Tokyo")