All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.Date

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.Date

public class Date
extends NativeObject
implements Coding
This class wraps the Objective-C class NSDate.


Variable Index

 o TimeIntervalSince1970

Constructor Index

 o Date()
This default constructor is equivalent to Objective-C's [[NSDate alloc] init].
 o Date(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Date(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Method Index

 o compare(Date)
A wrapper for the - compare: Objective-C instance method.
 o dateWithNaturalLanguageStringAndLocale(String, Dictionary)
A wrapper for the + dateWithNaturalLanguageString:locale: Objective-C class method.
 o distantFuture()
A wrapper for the + distantFuture Objective-C class method.
 o distantPast()
A wrapper for the + distantPast Objective-C class method.
 o earlierDate(Date)
A wrapper for the - earlierDate: Objective-C instance method.
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o laterDate(Date)
A wrapper for the - laterDate: Objective-C instance method.
 o timeIntervalSince1970()
A wrapper for the - timeIntervalSince1970 Objective-C instance method.
 o timeIntervalSinceDate(Date)
A wrapper for the - timeIntervalSinceDate: Objective-C instance method.
 o timeIntervalSinceDateOfReference()
A wrapper for the + timeIntervalSinceReferenceDate Objective-C class method.
 o timeIntervalSinceNow()
A wrapper for the - timeIntervalSinceNow Objective-C instance method.
 o timeIntervalSinceReferenceDate()
A wrapper for the - timeIntervalSinceReferenceDate Objective-C instance method.

Variables

 o TimeIntervalSince1970
 public static final double TimeIntervalSince1970

Constructors

 o Date
 protected Date(boolean shouldAllocate,
                int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Date
 public Date()
This default constructor is equivalent to Objective-C's [[NSDate alloc] init].

 o Date
 public Date(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Methods

 o timeIntervalSinceReferenceDate
 public native double timeIntervalSinceReferenceDate()
A wrapper for the - timeIntervalSinceReferenceDate Objective-C instance method.

 o timeIntervalSinceDate
 public native double timeIntervalSinceDate(Date anotherDate)
A wrapper for the - timeIntervalSinceDate: Objective-C instance method.

 o timeIntervalSinceNow
 public native double timeIntervalSinceNow()
A wrapper for the - timeIntervalSinceNow Objective-C instance method.

 o timeIntervalSince1970
 public native double timeIntervalSince1970()
A wrapper for the - timeIntervalSince1970 Objective-C instance method.

 o earlierDate
 public native Date earlierDate(Date anotherDate)
A wrapper for the - earlierDate: Objective-C instance method.

 o laterDate
 public native Date laterDate(Date anotherDate)
A wrapper for the - laterDate: Objective-C instance method.

 o compare
 public native int compare(Date other)
A wrapper for the - compare: Objective-C instance method.

 o timeIntervalSinceDateOfReference
 public static native double timeIntervalSinceDateOfReference()
A wrapper for the + timeIntervalSinceReferenceDate Objective-C class method.

 o distantFuture
 public static native Object distantFuture()
A wrapper for the + distantFuture Objective-C class method.

 o distantPast
 public static native Object distantPast()
A wrapper for the + distantPast Objective-C class method.

 o dateWithNaturalLanguageStringAndLocale
 public static native Object dateWithNaturalLanguageStringAndLocale(String string,
                                                                    Dictionary dict)
A wrapper for the + dateWithNaturalLanguageString:locale: Objective-C class method.

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index