NSDate class
NSDate
- Inheritance
-
- Object
- ObjCObjectBase
- NSObject
- NSDate
- Implemented types
- Available extensions
Constructors
- NSDate.new()
-
Returns a new instance of NSDate constructed with the default
new
method.factory - NSDate.castFrom(ObjCObjectBase other)
-
Constructs a NSDate that points to the same underlying object as
other
. -
NSDate.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a NSDate that wraps the given raw object pointer.
Properties
- debugDescription → NSString
-
Available on NSObject, provided by the NSObject$Methods extension
debugDescriptionno setter - description → NSString
-
Available on NSDate, provided by the NSExtendedDate extension
descriptionno setter - description → NSString
-
Available on NSObject, provided by the NSObject$Methods extension
descriptionno setter - hash → int
-
Available on NSObject, provided by the NSObject$Methods extension
hashno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isProxy → bool
-
Available on NSObject, provided by the NSObject$Methods extension
isProxyno setter - ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- superclass → ObjCObjectBase
-
Available on NSObject, provided by the NSObject$Methods extension
superclassno setter - timeIntervalSince1970 → double
-
Available on NSDate, provided by the NSExtendedDate extension
timeIntervalSince1970no setter - timeIntervalSinceNow → double
-
Available on NSDate, provided by the NSExtendedDate extension
timeIntervalSinceNowno setter - timeIntervalSinceReferenceDate → double
-
Available on NSDate, provided by the NSDate$Methods extension
timeIntervalSinceReferenceDateno setter
Methods
-
addObserver(
Observer observer, {required NSString forKeyPath, NSKeyValueObservingOptions options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer< Void> ? context}) → Observation -
Available on NSObject, provided by the Observed extension
Registers the Observer to receive KVO notifications for the key path relative tothis
NSObject. -
autorelease(
) → NSObject -
Available on NSObject, provided by the NSObject$Methods extension
autorelease -
class$(
) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
class -
compare(
NSDate other) → NSComparisonResult -
Available on NSDate, provided by the NSExtendedDate extension
compare: -
conformsToProtocol(
Protocol aProtocol) → bool -
Available on NSObject, provided by the NSObject$Methods extension
conformsToProtocol: -
copy(
) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
copy -
dateByAddingTimeInterval(
double ti) → NSDate -
Available on NSDate, provided by the NSDate$Methods extension
dateByAddingTimeInterval: -
dealloc(
) → void -
Available on NSObject, provided by the NSObject$Methods extension
dealloc -
descriptionWithLocale(
ObjCObjectBase? locale) → NSString -
Available on NSDate, provided by the NSExtendedDate extension
descriptionWithLocale: -
doesNotRecognizeSelector(
Pointer< ObjCSelector> aSelector) → void -
Available on NSObject, provided by the NSObject$Methods extension
doesNotRecognizeSelector: -
earlierDate(
NSDate anotherDate) → NSDate -
Available on NSDate, provided by the NSExtendedDate extension
earlierDate: -
encodeWithCoder(
NSCoder coder) → void -
Available on NSDate, provided by the NSDate$Methods extension
encodeWithCoder: -
forwardingTargetForSelector(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
forwardingTargetForSelector: -
forwardInvocation(
NSInvocation anInvocation) → void -
Available on NSObject, provided by the NSObject$Methods extension
forwardInvocation: -
init(
) → NSDate -
Available on NSDate, provided by the NSDate$Methods extension
init -
init(
) → NSObject -
Available on NSObject, provided by the NSObject$Methods extension
init -
initWithCoder(
NSCoder coder) → NSDate? -
Available on NSDate, provided by the NSDate$Methods extension
initWithCoder: -
initWithTimeInterval(
double secsToBeAdded, {required NSDate sinceDate}) → NSDate -
Available on NSDate, provided by the NSDate$Methods extension
initWithTimeInterval:sinceDate: -
initWithTimeIntervalSince1970(
double secs) → NSDate -
Available on NSDate, provided by the NSDate$Methods extension
initWithTimeIntervalSince1970: -
initWithTimeIntervalSinceNow(
double secs) → NSDate -
Available on NSDate, provided by the NSDate$Methods extension
initWithTimeIntervalSinceNow: -
initWithTimeIntervalSinceReferenceDate(
double ti) → NSDate -
Available on NSDate, provided by the NSDate$Methods extension
initWithTimeIntervalSinceReferenceDate: -
isEqual(
ObjCObjectBase object) → bool -
Available on NSObject, provided by the NSObject$Methods extension
isEqual: -
isEqualToDate(
NSDate otherDate) → bool -
Available on NSDate, provided by the NSExtendedDate extension
isEqualToDate: -
isKindOfClass(
ObjCObjectBase aClass) → bool -
Available on NSObject, provided by the NSObject$Methods extension
isKindOfClass: -
isMemberOfClass(
ObjCObjectBase aClass) → bool -
Available on NSObject, provided by the NSObject$Methods extension
isMemberOfClass: -
laterDate(
NSDate anotherDate) → NSDate -
Available on NSDate, provided by the NSExtendedDate extension
laterDate: -
methodForSelector(
Pointer< ObjCSelector> aSelector) → Pointer<NativeFunction< Void Function()> > -
Available on NSObject, provided by the NSObject$Methods extension
methodForSelector: -
methodSignatureForSelector(
Pointer< ObjCSelector> aSelector) → NSMethodSignature -
Available on NSObject, provided by the NSObject$Methods extension
methodSignatureForSelector: -
mutableCopy(
) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
mutableCopy -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performSelector(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
performSelector: -
performSelector$1(
Pointer< ObjCSelector> aSelector, {required ObjCObjectBase withObject}) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
performSelector:withObject: -
performSelector$2(
Pointer< ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) → ObjCObjectBase -
Available on NSObject, provided by the NSObject$Methods extension
performSelector:withObject:withObject: -
release(
) → void -
Available on NSObject, provided by the NSObject$Methods extension
release -
respondsToSelector(
Pointer< ObjCSelector> aSelector) → bool -
Available on NSObject, provided by the NSObject$Methods extension
respondsToSelector: -
retain(
) → NSObject -
Available on NSObject, provided by the NSObject$Methods extension
retain -
retainCount(
) → int -
Available on NSObject, provided by the NSObject$Methods extension
retainCount -
self$1(
) → NSObject -
Available on NSObject, provided by the NSObject$Methods extension
self -
timeIntervalSinceDate(
NSDate anotherDate) → double -
Available on NSDate, provided by the NSExtendedDate extension
timeIntervalSinceDate: -
toDateTime(
) → DateTime -
Available on NSDate, provided by the NSDateToDateTime extension
-
toString(
) → String -
A string representation of this object.
inherited
-
zone(
) → Pointer< NSZone> -
Available on NSObject, provided by the NSObject$Methods extension
zone
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alloc(
) → NSDate -
alloc
override
-
allocWithZone(
Pointer< NSZone> zone) → NSDate -
allocWithZone:
override
-
date(
) → NSDate - date
-
dateWithTimeInterval(
double secsToBeAdded, {required NSDate sinceDate}) → NSDate - dateWithTimeInterval:sinceDate:
-
dateWithTimeIntervalSince1970(
double secs) → NSDate - dateWithTimeIntervalSince1970:
-
dateWithTimeIntervalSinceNow(
double secs) → NSDate - dateWithTimeIntervalSinceNow:
-
dateWithTimeIntervalSinceReferenceDate(
double ti) → NSDate - dateWithTimeIntervalSinceReferenceDate:
-
getSupportsSecureCoding(
) → bool - supportsSecureCoding
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
obj
is an instance of NSDate.override -
new$(
) → NSDate -
new
override