Xojo.Core.TimeZone

From Xojo Documentation

Class (inherits from Object)

Used to identify a time zone in relationship to a Date.

Properties
Abbreviation fa-lock-32.png SecondsFromGMT fa-lock-32.png
Constructors

Xojo.Core.TimeZone.Constructor(gmtOffsetInSeconds As Integer)


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


Shared Methods
Current

Sample Code

Creates a date for Berlin that matches the local time's hours and minutes. The interval shows the time differences between Berlin and the current time zone:

Dim berlinTZ As New Xojo.Core.TimeZone("Europe/Berlin")

Dim berlinDate As New Xojo.Core.Date(Xojo.Core.Date.Now.Year, _
Xojo.Core.Date.Now.Month, _
Xojo.Core.Date.Now.Day, _
Xojo.Core.Date.Now.Hour, _
Xojo.Core.Date.Now.Minute, berlinTZ)

Dim interval As Xojo.Core.DateInterval
interval = Xojo.Core.Date.Now - berlinDate

See Also

Xojo.Core.Date class