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
dim t as new TimeZoneMBS
MsgBox 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 Version macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in hours.
Example
dim t as TimeZoneMBS

t=new TimeZoneMBS

msgbox 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 Version macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in minutes.
Example
dim t as TimeZoneMBS

t=new TimeZoneMBS

msgbox 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 Version macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in seconds.
Example
dim t as TimeZoneMBS

t=new TimeZoneMBS

msgbox 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 Version macOS Windows Linux iOS Targets
property TimeZone MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the GMT offset in seconds.
Example
dim t as new TimeZoneMBS

MsgBox str(t.GmtDeltaTotalseconds)

(Read only property)

TimeZoneMBS.Latitude as Double

Type Topic Plugin Version 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
dim longdeg,longmin as Integer
dim 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 Version 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
dim latdeg,latmin as Integer
dim 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
dim t as new TimeZoneMBS
MsgBox 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...