TimeZone.SecondsFromGMT

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aTimeZone.SecondsFromGMT

New in 2019r2

Supported for all project types and targets.

The GMT offset in seconds.

Sample Code

Gets the GMT offset in seconds for the current time zone:

Var gmtOffset As Integer
gmtOffset = TimeZone.Current.SecondsFromGMT
// gmtOffset = -14400 (4 hours), if US Eastern Time Zone using daylight savings time, -18000 otherwise