public class NSDateComponents extends NSObject implements NSSecureCoding
| Modifier and Type | Field and Description |
|---|---|
static int |
Wrap |
| Constructor and Description |
|---|
NSDateComponents() |
| Modifier and Type | Method and Description |
|---|---|
int |
day()
Returns the number that represents the day of this date object.
|
int |
era()
Returns the number that represents the era of this date object.
|
int |
hour()
Returns the number that represents the hour of this date object.
|
int |
minute()
Returns the number that represents the minutes of this date object.
|
int |
month()
Returns the number that represents the month of this date object.
|
int |
second()
Returns the number that represents the seconds of this date object.
|
void |
setDay(int value)
Sets the day for this date object.
|
void |
setEra(int value)
Sets the era for this date object.
|
void |
setHour(int value)
Sets the hour for this date object.
|
void |
setMinute(int value)
Sets the minutes for this date object.
|
void |
setMonth(int value)
Sets the month for this date object.
|
void |
setSecond(int value)
Sets the seconds for this date object.
|
void |
setWeek(int value)
Deprecated.
|
void |
setWeekday(int value)
Sets the day of the week for this date object.
|
void |
setWeekdayOrdinal(int value)
Sets the ordinal of the day of the week for this date object.
|
void |
setYear(int value)
Sets the year for this date object.
|
int |
week()
Deprecated.
|
int |
weekday()
Returns the number that represents the day of the week of this date object.
|
int |
weekdayOrdinal()
Returns the number that represents the ordinal of the day of the week of this date object.
|
int |
year()
Returns the number that represents the year of this date object.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsSecureCodingpublic static final int Wrap
public int era()
public int year()
public int month()
public int day()
public int hour()
public int minute()
public int second()
@Deprecated public int week()
public int weekday()
public int weekdayOrdinal()
public void setEra(int value)
value - The era for this date object.public void setYear(int value)
value - The year for this date object.public void setMonth(int value)
value - The month for this date object.public void setDay(int value)
value - The day for this date object.public void setHour(int value)
value - The hour for this date object.public void setMinute(int value)
value - The minutes for this date object.public void setSecond(int value)
value - The seconds for this date object.@Deprecated public void setWeek(int value)
value - The week for this date object.public void setWeekday(int value)
value - The day of the week for this date object.public void setWeekdayOrdinal(int value)
value - The ordinal of the day of the week for this date object.Copyright © 2020. All rights reserved.