Package org.robovm.apple.foundation
Class NSCalendar
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSCalendar
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSCalendar extends NSObject implements NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSCalendar.Notifications
static class
NSCalendar.NSCalendarPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NSCalendar()
NSCalendar(NSCalendarIdentifier ident)
NSCalendar(NSCoder decoder)
protected
NSCalendar(NSObject.Handle h, long handle)
protected
NSCalendar(NSObject.SkipInit skipInit)
-
Method Summary
-
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, willChangeValues
-
-
-
-
Constructor Detail
-
NSCalendar
protected NSCalendar()
-
NSCalendar
protected NSCalendar(NSObject.Handle h, long handle)
-
NSCalendar
protected NSCalendar(NSObject.SkipInit skipInit)
-
NSCalendar
public NSCalendar(NSCalendarIdentifier ident)
-
NSCalendar
public NSCalendar(NSCoder decoder)
-
-
Method Detail
-
getCurrentCalendar
public static NSCalendar getCurrentCalendar()
-
getAutoupdatingCurrentCalendar
public static NSCalendar getAutoupdatingCurrentCalendar()
- Since:
- Available in iOS 2.0 and later.
-
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 java.util.List<java.lang.String> getEraSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getLongEraSymbols
public java.util.List<java.lang.String> getLongEraSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getMonthSymbols
public java.util.List<java.lang.String> getMonthSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getShortMonthSymbols
public java.util.List<java.lang.String> getShortMonthSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getVeryShortMonthSymbols
public java.util.List<java.lang.String> getVeryShortMonthSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getStandaloneMonthSymbols
public java.util.List<java.lang.String> getStandaloneMonthSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getShortStandaloneMonthSymbols
public java.util.List<java.lang.String> getShortStandaloneMonthSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getVeryShortStandaloneMonthSymbols
public java.util.List<java.lang.String> getVeryShortStandaloneMonthSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getWeekdaySymbols
public java.util.List<java.lang.String> getWeekdaySymbols()
- Since:
- Available in iOS 5.0 and later.
-
getShortWeekdaySymbols
public java.util.List<java.lang.String> getShortWeekdaySymbols()
- Since:
- Available in iOS 5.0 and later.
-
getVeryShortWeekdaySymbols
public java.util.List<java.lang.String> getVeryShortWeekdaySymbols()
- Since:
- Available in iOS 5.0 and later.
-
getStandaloneWeekdaySymbols
public java.util.List<java.lang.String> getStandaloneWeekdaySymbols()
- Since:
- Available in iOS 5.0 and later.
-
getShortStandaloneWeekdaySymbols
public java.util.List<java.lang.String> getShortStandaloneWeekdaySymbols()
- Since:
- Available in iOS 5.0 and later.
-
getVeryShortStandaloneWeekdaySymbols
public java.util.List<java.lang.String> getVeryShortStandaloneWeekdaySymbols()
- Since:
- Available in iOS 5.0 and later.
-
getQuarterSymbols
public java.util.List<java.lang.String> getQuarterSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getShortQuarterSymbols
public java.util.List<java.lang.String> getShortQuarterSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getStandaloneQuarterSymbols
public java.util.List<java.lang.String> getStandaloneQuarterSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getShortStandaloneQuarterSymbols
public java.util.List<java.lang.String> getShortStandaloneQuarterSymbols()
- Since:
- Available in iOS 5.0 and later.
-
getAMSymbol
public java.lang.String getAMSymbol()
- Since:
- Available in iOS 5.0 and later.
-
getPMSymbol
public java.lang.String getPMSymbol()
- Since:
- Available in iOS 5.0 and later.
-
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()
- Since:
- Available in iOS 8.0 and later.
-
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, org.robovm.rt.bro.ptr.DoublePtr tip, NSDate date)
- Since:
- Available in iOS 2.0 and later.
-
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)
-
init
protected long init(NSCoder decoder)
-
-