TimeZone.Constructor(name As String)

From Xojo Documentation

Revision as of 02:47, 2 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.


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")