Platforms to show: All Mac Windows Linux Cross-Platform

Back to TimeZoneMBS class.

TimeZoneMBS.DaylightName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A description for daylight saving time.
Example
Var t as new TimeZoneMBS
MessageBox t.DaylightName

For example, "PDT" could indicate Pacific Daylight Time. This string can be empty.
e.g. "Mitteleuropäische Sommerzeit"
On Mac, please use NSTimeZoneMBS class.
(Read only property)

TimeZoneMBS.GmtDeltaHours as Integer

Type Topic Plugin macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in hours.
Example
Var t as TimeZoneMBS

t=new TimeZoneMBS

MessageBox format(t.GmtDeltaHours,"+00")+ ":" +format(t.GmtDeltaminutes,"00")+ ":" +format(t.GmtDeltaseconds,"00")

On Windows this information is not available.
(Read only property)

Some examples using this property:

TimeZoneMBS.GmtDeltaMinutes as Integer

Type Topic Plugin macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in minutes.
Example
Var t as TimeZoneMBS

t=new TimeZoneMBS

MessageBox format(t.GmtDeltaHours,"+00")+ ":" +format(t.GmtDeltaminutes,"00")+ ":" +format(t.GmtDeltaseconds,"00")

On Windows this information is not available.
(Read only property)

Some examples using this property:

TimeZoneMBS.GmtDeltaSeconds as Integer

Type Topic Plugin macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in seconds.
Example
Var t as TimeZoneMBS

t=new TimeZoneMBS

MessageBox format(t.GmtDeltaHours,"+00")+ ":" +format(t.GmtDeltaminutes,"00")+ ":" +format(t.GmtDeltaseconds,"00")

(Read only property)

Some examples using this property:

TimeZoneMBS.GmtDeltaTotalseconds as Integer

Type Topic Plugin macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in seconds.
Example
Var t as new TimeZoneMBS

MessageBox str(t.GmtDeltaTotalseconds)

(Read only property)

TimeZoneMBS.Latitude as Double

Type Topic Plugin macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the latitude of the current position on earth.
Example
Var longdeg,longmin as Integer
Var t as TimeZoneMBS

t=new TimeZoneMBS

longdeg=floor(t.longitude*90)
longmin=floor((t.longitude*90-longdeg)*60)

StaticText1.text=format(longdeg,"0")+"°"
StaticText2.text=format(longmin,"0")+"'"

On Windows this information is not available.
(Read only property)

TimeZoneMBS.Longitude as Double

Type Topic Plugin macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the longitude of the current position on earth.
Example
Var latdeg,latmin as Integer
Var t as TimeZoneMBS

t=new TimeZoneMBS

latdeg=floor(t.latitude*90)
latmin=floor((t.latitude*90-latdeg)*60)

StaticText1.text=format(latdeg,"0")+"°"
StaticText2.text=format(latmin,"0")+"'"

On Windows this information is not available.
(Read only property)

TimeZoneMBS.StandardName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A description for standard time.
Example
Var t as new TimeZoneMBS
MessageBox t.StandardName

For example, "EST" could indicate Eastern Standard Time. This string can be empty.
e.g. "Mitteleuropäische Zeit"
On Mac, please use NSTimeZoneMBS class.
(Read only property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...