Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTimeZoneMBS class.

NSTimeZoneMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new timezone.

See also:

NSTimeZoneMBS.Constructor(name as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a time zone initialized with a given ID.
Example
dim t as NSTimeZoneMBS = new NSTimeZoneMBS("Europe/Berlin")
MsgBox t.name

If name is a known ID, this method calls initWithName:data: with the appropriate data object.

In Mac OS X v10.4 and earlier providing nil for the parameter would have caused a crash. In Mac OS X v10.5 and later, this now raises an invalid argument exception.

See also:

NSTimeZoneMBS.copy as NSTimeZoneMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the timezone object.
Example
dim t as NSTimeZoneMBS = NSTimeZoneMBS.systemTimeZone
dim c as NSTimeZoneMBS = t.copy

MsgBox c.name

NSTimeZoneMBS.isEqualToTimeZone(timeZone as NSTimeZoneMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether the receiver has the same name and data as another given time zone.
Example
if NSTimeZoneMBS.systemTimeZone.isEqualToTimeZone(NSTimeZoneMBS.localTimeZone) then
MsgBox "equal"
else
MsgBox "not equal"
end if

TimeZone: The time zone to compare with the receiver.
Returns true if TimeZone and the receiver have the same name and data, otherwise false.

NSTimeZoneMBS.Print

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Writes the time zone to debug output.
Example
NSTimeZoneMBS.localTimeZone.print

This may help for debugging and you see output in console app.

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


The biggest plugin in space...