NSTimeZone class
NSTimeZone
- Implemented types
Constructors
- NSTimeZone.castFrom(ObjCObjectBase other)
-
Constructs a NSTimeZone that points to the same underlying object as
other
. -
NSTimeZone.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a NSTimeZone that wraps the given raw object pointer.
Properties
- abbreviation → NSString?
-
abbreviation
no setter
- autoContentAccessingProxy → ObjCObjectBase
-
autoContentAccessingProxy
no setterinherited
- classForCoder → ObjCObjectBase
-
classForCoder
no setterinherited
- data → NSData
-
data
no setter
- daylightSavingTime → bool
-
isDaylightSavingTime
no setter
- daylightSavingTimeOffset → double
-
daylightSavingTimeOffset
no setter
- description → NSString
-
description
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → NSString
-
name
no setter
- nextDaylightSavingTimeTransition → NSDate?
-
nextDaylightSavingTimeTransition
no setter
-
observationInfo
↔ Pointer<
Void> -
observationInfo
getter/setter pairinherited
-
pointer
→ Pointer<
ObjCObject> -
Return a pointer to this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondsFromGMT → int
-
secondsFromGMT
no setter
Methods
-
abbreviationForDate_(
NSDate aDate) → NSString? - abbreviationForDate:
-
addObserver_forKeyPath_options_context_(
NSObject observer, NSString keyPath, NSKeyValueObservingOptions options, Pointer< Void> context) → void -
addObserver:forKeyPath:options:context:
inherited
-
allowsWeakReference(
) → bool -
allowsWeakReference
inherited
-
attemptRecoveryFromError_optionIndex_(
NSError error, int recoveryOptionIndex) → bool -
attemptRecoveryFromError:optionIndex:
inherited
-
attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_(
NSError error, int recoveryOptionIndex, ObjCObjectBase? delegate, Pointer< ObjCSelector> didRecoverSelector, Pointer<Void> contextInfo) → void -
attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:
inherited
-
awakeAfterUsingCoder_(
NSCoder coder) → ObjCObjectBase? -
awakeAfterUsingCoder:
inherited
-
copy(
) → ObjCObjectBase -
copy
inherited
-
daylightSavingTimeOffsetForDate_(
NSDate aDate) → double - daylightSavingTimeOffsetForDate:
-
dealloc(
) → void -
dealloc
inherited
-
didChange_valuesAtIndexes_forKey_(
NSKeyValueChange changeKind, NSIndexSet indexes, NSString key) → void -
didChange:valuesAtIndexes:forKey:
inherited
-
didChangeValueForKey_(
NSString key) → void -
didChangeValueForKey:
inherited
-
didChangeValueForKey_withSetMutation_usingObjects_(
NSString key, NSKeyValueSetMutationKind mutationKind, NSSet objects) → void -
didChangeValueForKey:withSetMutation:usingObjects:
inherited
-
doesNotRecognizeSelector_(
Pointer< ObjCSelector> aSelector) → void -
doesNotRecognizeSelector:
inherited
-
finalize(
) → void -
finalize
inherited
-
forwardingTargetForSelector_(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
forwardingTargetForSelector:
inherited
-
forwardInvocation_(
NSInvocation anInvocation) → void -
forwardInvocation:
inherited
-
init(
) → NSTimeZone - init
-
initWithName_(
NSString tzName) → NSTimeZone? - initWithName:
-
initWithName_data_(
NSString tzName, NSData? aData) → NSTimeZone? - initWithName:data:
-
isDaylightSavingTimeForDate_(
NSDate aDate) → bool - isDaylightSavingTimeForDate:
-
isEqualToTimeZone_(
NSTimeZone aTimeZone) → bool - isEqualToTimeZone:
-
localizedName_locale_(
NSTimeZoneNameStyle style, NSLocale? locale) → NSString? - localizedName:locale:
-
methodForSelector_(
Pointer< ObjCSelector> aSelector) → Pointer<NativeFunction< Void Function()> > -
methodForSelector:
inherited
-
methodSignatureForSelector_(
Pointer< ObjCSelector> aSelector) → NSMethodSignature -
methodSignatureForSelector:
inherited
-
mutableCopy(
) → ObjCObjectBase -
mutableCopy
inherited
-
nextDaylightSavingTimeTransitionAfterDate_(
NSDate aDate) → NSDate? - nextDaylightSavingTimeTransitionAfterDate:
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observeValueForKeyPath_ofObject_change_context_(
NSString? keyPath, ObjCObjectBase? object, NSDictionary? change, Pointer< Void> context) → void -
observeValueForKeyPath:ofObject:change:context:
inherited
-
release(
) → void -
Releases the reference to the underlying ObjC object held by this wrapper.
Throws a StateError if this wrapper doesn't currently hold a reference.
inherited
-
removeObserver_forKeyPath_(
NSObject observer, NSString keyPath) → void -
removeObserver:forKeyPath:
inherited
-
removeObserver_forKeyPath_context_(
NSObject observer, NSString keyPath, Pointer< Void> context) → void -
removeObserver:forKeyPath:context:
inherited
-
replacementObjectForCoder_(
NSCoder coder) → ObjCObjectBase? -
replacementObjectForCoder:
inherited
-
retainAndReturnPointer(
) → Pointer< ObjCObject> -
Retain a reference to this object and then return the pointer. This
reference must be released when you are done with it. If you wrap this
reference in another object, make sure to release it but not retain it:
castFromPointer(lib, pointer, retain: false, release: true)
inherited -
retainWeakReference(
) → bool -
retainWeakReference
inherited
-
secondsFromGMTForDate_(
NSDate aDate) → int - secondsFromGMTForDate:
-
toString(
) → String -
A string representation of this object.
inherited
-
URL_resourceDataDidBecomeAvailable_(
NSURL sender, NSData newBytes) → void -
URL:resourceDataDidBecomeAvailable:
inherited
-
URL_resourceDidFailLoadingWithReason_(
NSURL sender, NSString reason) → void -
URL:resourceDidFailLoadingWithReason:
inherited
-
URLResourceDidCancelLoading_(
NSURL sender) → void -
URLResourceDidCancelLoading:
inherited
-
URLResourceDidFinishLoading_(
NSURL sender) → void -
URLResourceDidFinishLoading:
inherited
-
willChange_valuesAtIndexes_forKey_(
NSKeyValueChange changeKind, NSIndexSet indexes, NSString key) → void -
willChange:valuesAtIndexes:forKey:
inherited
-
willChangeValueForKey_(
NSString key) → void -
willChangeValueForKey:
inherited
-
willChangeValueForKey_withSetMutation_usingObjects_(
NSString key, NSKeyValueSetMutationKind mutationKind, NSSet objects) → void -
willChangeValueForKey:withSetMutation:usingObjects:
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alloc(
) → NSTimeZone - alloc
-
allocWithZone_(
Pointer< _NSZone> zone) → NSTimeZone - allocWithZone:
-
getAbbreviationDictionary(
) → NSDictionary - abbreviationDictionary
-
getDefaultTimeZone(
) → NSTimeZone - defaultTimeZone
-
getKnownTimeZoneNames(
) → ObjCObjectBase - knownTimeZoneNames
-
getLocalTimeZone(
) → NSTimeZone - localTimeZone
-
getSystemTimeZone(
) → NSTimeZone - systemTimeZone
-
getTimeZoneDataVersion(
) → NSString - timeZoneDataVersion
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
obj
is an instance of NSTimeZone. -
new1(
) → NSTimeZone - new
-
resetSystemTimeZone(
) → void - resetSystemTimeZone
-
setAbbreviationDictionary(
NSDictionary value) → void - setAbbreviationDictionary:
-
setDefaultTimeZone(
NSTimeZone value) → void - setDefaultTimeZone:
-
timeZoneForSecondsFromGMT_(
int seconds) → NSTimeZone - timeZoneForSecondsFromGMT:
-
timeZoneWithAbbreviation_(
NSString abbreviation) → NSTimeZone? - timeZoneWithAbbreviation:
-
timeZoneWithName_(
NSString tzName) → NSTimeZone? - timeZoneWithName:
-
timeZoneWithName_data_(
NSString tzName, NSData? aData) → NSTimeZone? - timeZoneWithName:data: