@interface NSCalendarDate : NSDate
|
// Initializers |
- (id)initWithString:(NSString *)description;
|
- (id)initWithString:(NSString *)description calendarFormat:(NSString *)format;
|
- (id)initWithString:(NSString *)description calendarFormat:(NSString *)format locale:(NSDictionary *)dict;
|
- (id)initWithYear:(int)year month:(unsigned)month day:(unsigned)day hour:(unsigned)hour
minute:(unsigned)minute second:(unsigned)second timeZone:(NSTimeZone *)aTimeZone;
|
// Accessor Methods |
- (void)setTimeZone:(NSTimeZone *)aTimeZone;
|
- (NSTimeZone *)timeZone;
|
- (void)setCalendarFormat:(NSString *)format;
|
- (NSString *)calendarFormat;
|
// Class Methods |
+ (id)calendarDate;
|
+ (id)dateWithString:(NSString *)description calendarFormat:(NSString *)format;
|
+ (id)dateWithString:(NSString *)description calendarFormat:(NSString *)format locale:(NSDictionary *)dict;
|
+ (id)dateWithYear:(int)year month:(unsigned)month day:(unsigned)day hour:(unsigned)hour
minute:(unsigned)minute second:(unsigned)second timeZone:(NSTimeZone *)aTimeZone;
|
// Instance Methods |
- (NSCalendarDate *)dateByAddingYears:(int)year months:(int)month days:(int)day hours:(int)hour
minutes:(int)minute seconds:(int)second;
|
- (int)dayOfCommonEra;
|
- (int)dayOfMonth;
|
- (NSString *)description;
|
- (NSString *)descriptionWithCalendarFormat:(NSString *)format;
|
- (int)dayOfWeek;
|
- (int)dayOfYear;
|
- (NSString *)descriptionWithCalendarFormat:(NSString *)format locale:(NSDictionary *)locale;
|
- (NSString *)descriptionWithLocale:(NSDictionary *)locale;
|
- (int)hourOfDay;
|
- (int)minuteOfHour;
|
- (int)monthOfYear;
|
- (int)secondOfMinute;
|
- (int)yearOfCommonEra;
|
- (void)years:(int *)yp months:(int *)mop days:(int *)dp hours:(int *)hp minutes:(int *)mip seconds:(int *)sp
sinceDate:(NSCalendarDate *)date;
|