Class NSDate

    • Field Detail

      • TimeIntervalSince1970

        public static final double TimeIntervalSince1970
        See Also:
        Constant Field Values
    • Constructor Detail

      • NSDate

        public NSDate()
      • NSDate

        public NSDate​(double secs)
      • NSDate

        public NSDate​(java.util.Date date)
    • Method Detail

      • getTimeIntervalSinceReferenceDate

        public double getTimeIntervalSinceReferenceDate()
      • getTimeIntervalSinceNow

        public double getTimeIntervalSinceNow()
      • getTimeIntervalSince1970

        public double getTimeIntervalSince1970()
      • getDistantFuture

        public static NSDate getDistantFuture()
      • getDistantPast

        public static NSDate getDistantPast()
      • toDate

        public java.util.Date toDate()
      • SystemClockDidChangeNotification

        public static NSString SystemClockDidChangeNotification()
        Available in iOS 4.0 and later.
      • getTimeIntervalSince

        public double getTimeIntervalSince​(NSDate anotherDate)
      • newDateByAddingTimeInterval

        public NSDate newDateByAddingTimeInterval​(double ti)
        Available in iOS 2.0 and later.
      • earlierDate

        public NSDate earlierDate​(NSDate anotherDate)
      • laterDate

        public NSDate laterDate​(NSDate anotherDate)
      • equalsTo

        public boolean equalsTo​(NSDate otherDate)
      • toString

        public java.lang.String toString​(NSLocale locale)
      • init

        protected long init​(double secs)
      • now

        public static NSDate now()
      • createWithTimeIntervalSinceNow

        public static NSDate createWithTimeIntervalSinceNow​(double secs)
      • createWithTimeIntervalSinceReferenceDate

        public static NSDate createWithTimeIntervalSinceReferenceDate​(double ti)
      • createWithTimeIntervalSince1970

        public static NSDate createWithTimeIntervalSince1970​(double secs)
      • createWithTimeIntervalSinceDate

        public static NSDate createWithTimeIntervalSinceDate​(double secsToBeAdded,
                                                             NSDate date)