Class NSCalendar

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class NSCalendar
extends NSObject
implements NSSecureCoding
  • Constructor Details

  • Method Details

    • getCurrentCalendar

      public static NSCalendar getCurrentCalendar()
    • getAutoupdatingCurrentCalendar

      public static NSCalendar getAutoupdatingCurrentCalendar()
    • getCalendarIdentifier

      public NSCalendarIdentifier getCalendarIdentifier()
    • getLocale

      public NSLocale getLocale()
    • setLocale

      public void setLocale​(NSLocale v)
    • getTimeZone

      public NSTimeZone getTimeZone()
    • setTimeZone

      public void setTimeZone​(NSTimeZone v)
    • getFirstWeekday

      public long getFirstWeekday()
    • setFirstWeekday

      public void setFirstWeekday​(long v)
    • getMinimumDaysInFirstWeek

      public long getMinimumDaysInFirstWeek()
    • setMinimumDaysInFirstWeek

      public void setMinimumDaysInFirstWeek​(long v)
    • getEraSymbols

      public List<String> getEraSymbols()
    • getLongEraSymbols

      public List<String> getLongEraSymbols()
    • getMonthSymbols

      public List<String> getMonthSymbols()
    • getShortMonthSymbols

      public List<String> getShortMonthSymbols()
    • getVeryShortMonthSymbols

      public List<String> getVeryShortMonthSymbols()
    • getStandaloneMonthSymbols

      public List<String> getStandaloneMonthSymbols()
    • getShortStandaloneMonthSymbols

      public List<String> getShortStandaloneMonthSymbols()
    • getVeryShortStandaloneMonthSymbols

      public List<String> getVeryShortStandaloneMonthSymbols()
    • getWeekdaySymbols

      public List<String> getWeekdaySymbols()
    • getShortWeekdaySymbols

      public List<String> getShortWeekdaySymbols()
    • getVeryShortWeekdaySymbols

      public List<String> getVeryShortWeekdaySymbols()
    • getStandaloneWeekdaySymbols

      public List<String> getStandaloneWeekdaySymbols()
    • getShortStandaloneWeekdaySymbols

      public List<String> getShortStandaloneWeekdaySymbols()
    • getVeryShortStandaloneWeekdaySymbols

      public List<String> getVeryShortStandaloneWeekdaySymbols()
    • getQuarterSymbols

      public List<String> getQuarterSymbols()
    • getShortQuarterSymbols

      public List<String> getShortQuarterSymbols()
    • getStandaloneQuarterSymbols

      public List<String> getStandaloneQuarterSymbols()
    • getShortStandaloneQuarterSymbols

      public List<String> getShortStandaloneQuarterSymbols()
    • getAMSymbol

      public String getAMSymbol()
    • getPMSymbol

      public String getPMSymbol()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getStartTime

      public NSDate getStartTime​(NSCalendarUnit unit, NSDate date)
      Since:
      Available in iOS 2.0 and later.
    • getDuration

      public double getDuration​(NSCalendarUnit unit, NSDate date)
      Since:
      Available in iOS 2.0 and later.
    • DayChangedNotification

      public static NSString DayChangedNotification()
    • init

      protected long init​(NSCalendarIdentifier ident)
    • getMinimumRange

      public NSRange getMinimumRange​(NSCalendarUnit unit)
    • getMaximumRange

      public NSRange getMaximumRange​(NSCalendarUnit unit)
    • getRange

      public NSRange getRange​(NSCalendarUnit smaller, NSCalendarUnit larger, NSDate date)
    • getOrdinality

      public long getOrdinality​(NSCalendarUnit smaller, NSCalendarUnit larger, NSDate date)
    • getRange

      protected boolean getRange​(NSCalendarUnit unit, NSDate.NSDatePtr datep, DoublePtr tip, NSDate date)
    • newDateFromComponents

      public NSDate newDateFromComponents​(NSDateComponents comps)
    • getComponents

      public NSDateComponents getComponents​(NSCalendarUnit unitFlags, NSDate date)
    • newDateByAddingComponents

      public NSDate newDateByAddingComponents​(NSDateComponents comps, NSDate date, NSCalendarOptions opts)
    • getComponents

      public NSDateComponents getComponents​(NSCalendarUnit unitFlags, NSDate startingDate, NSDate resultDate, NSCalendarOptions opts)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)