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:

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