Package org.robovm.apple.foundation
Class NSDate
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.foundation.NSDate
- All Implemented Interfaces:
NSObjectProtocol,NSPropertyList,ObjCProtocol
public class NSDate extends NSObject implements NSPropertyList
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSDate.Notificationsstatic classNSDate.NSDatePtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields Modifier and Type Field Description static doubleTimeIntervalSince1970 -
Constructor Summary
Constructors Modifier Constructor Description NSDate()NSDate(double secs)NSDate(Date date)protectedNSDate(NSObject.Handle h, long handle)protectedNSDate(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description NSComparisonResultcompare(NSDate other)static NSDatecreateWithTimeIntervalSince1970(double secs)static NSDatecreateWithTimeIntervalSinceDate(double secsToBeAdded, NSDate date)static NSDatecreateWithTimeIntervalSinceNow(double secs)static NSDatecreateWithTimeIntervalSinceReferenceDate(double ti)NSDateearlierDate(NSDate anotherDate)booleanequalsTo(NSDate otherDate)static NSDategetDistantFuture()static NSDategetDistantPast()static NSDategetNow()doublegetTimeIntervalSince(NSDate anotherDate)doublegetTimeIntervalSince1970()doublegetTimeIntervalSinceNow()doublegetTimeIntervalSinceReferenceDate()protected longinit(double secs)NSDatelaterDate(NSDate anotherDate)NSDatenewDateByAddingTimeInterval(double ti)static NSDatenow()static NSStringSystemClockDidChangeNotification()DatetoDate()StringtoString(NSLocale locale)Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Field Details
-
TimeIntervalSince1970
public static final double TimeIntervalSince1970- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getTimeIntervalSinceReferenceDate
public double getTimeIntervalSinceReferenceDate() -
getTimeIntervalSinceNow
public double getTimeIntervalSinceNow() -
getTimeIntervalSince1970
public double getTimeIntervalSince1970() -
getDistantFuture
-
getDistantPast
-
getNow
- Since:
- Available in iOS 13.0 and later.
-
toDate
-
SystemClockDidChangeNotification
-
getTimeIntervalSince
-
newDateByAddingTimeInterval
-
earlierDate
-
laterDate
-
compare
-
equalsTo
-
toString
-
init
protected long init(double secs) -
now
-
createWithTimeIntervalSinceNow
-
createWithTimeIntervalSinceReferenceDate
-
createWithTimeIntervalSince1970
-
createWithTimeIntervalSinceDate
-