NSDateComponents
E820432
NSDateComponents is a Foundation framework class in Apple’s platforms that represents the individual components (such as year, month, day, hour, and minute) of a date and time, used for date calculations and calendar operations.
Statements (48)
| Predicate | Object |
|---|---|
| instanceOf |
Foundation class
ⓘ
Objective-C class ⓘ date components type ⓘ |
| availableInLanguage | Swift NERFINISHED ⓘ |
| conformsTo |
NSCopying
NERFINISHED
ⓘ
NSSecureCoding NERFINISHED ⓘ |
| definedInFramework | Foundation NERFINISHED ⓘ |
| hasProperty |
date
ⓘ
isValidDate ⓘ isValidDateInCalendar ⓘ |
| introducedBy | Apple NERFINISHED ⓘ |
| language | Objective-C NERFINISHED ⓘ |
| primaryPurpose | represent individual components of a date and time ⓘ |
| relatedTo |
NSDateComponentsFormatter
NERFINISHED
ⓘ
NSDateInterval ⓘ NSDateIntervalFormatter NERFINISHED ⓘ |
| supportsComponent |
calendar
ⓘ
day ⓘ era ⓘ hour ⓘ isLeapMonth ⓘ minute ⓘ month ⓘ nanosecond ⓘ quarter ⓘ second ⓘ timeZone ⓘ weekOfMonth ⓘ weekOfYear ⓘ weekday ⓘ weekdayOrdinal ⓘ year ⓘ yearForWeekOfYear ⓘ |
| supportsFeature |
calendar-aware validation
ⓘ
partial specification of date components ⓘ time zone–aware date construction ⓘ |
| SwiftName | DateComponents NERFINISHED ⓘ |
| usedFor |
calendar arithmetic
ⓘ
constructing dates from components ⓘ date calculations ⓘ extracting components from dates ⓘ |
| usedOnPlatform |
iOS
NERFINISHED
ⓘ
macOS NERFINISHED ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| usedWith |
NSCalendar
NERFINISHED
ⓘ
NSDate NERFINISHED ⓘ NSDateFormatter ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.