NSDateFormatter
E820434
NSDateFormatter is a Foundation framework class in Apple’s platforms used to convert between NSDate objects and their string representations according to specified date and time formats and locales.
Statements (50)
| Predicate | Object |
|---|---|
| instanceOf |
Foundation class
ⓘ
Objective-C class ⓘ date formatter ⓘ |
| bridgedTo | Swift DateFormatter NERFINISHED ⓘ |
| framework | Foundation NERFINISHED ⓘ |
| hasMethod |
dateFromString:
ⓘ
setDateFormat: ⓘ setDateStyle: ⓘ setLocale: ⓘ setTimeStyle: ⓘ setTimeZone: ⓘ stringFromDate: ⓘ |
| hasProperty |
calendar
ⓘ
dateFormat ⓘ dateStyle ⓘ doesRelativeDateFormatting ⓘ generatesCalendarDates ⓘ lenient ⓘ locale ⓘ timeStyle ⓘ timeZone ⓘ |
| introducedIn |
iOS 2.0
NERFINISHED
ⓘ
macOS 10.0 ⓘ |
| language | Objective-C NERFINISHED ⓘ |
| module | Foundation.framework NERFINISHED ⓘ |
| platform |
iOS
ⓘ
macOS ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| purpose |
convert NSDate to string
ⓘ
convert string to NSDate ⓘ |
| superclass | NSFormatter NERFINISHED ⓘ |
| supports |
ISO 8601-like formats (via patterns)
ⓘ
calendar customization ⓘ custom format strings ⓘ date and time formatting ⓘ date formatting ⓘ format templates ⓘ internationalization ⓘ lenient parsing ⓘ locale customization ⓘ localization ⓘ predefined date styles ⓘ predefined time styles ⓘ relative date formatting ⓘ time formatting ⓘ time zone customization ⓘ |
| threadSafety | not thread-safe ⓘ |
| usageRecommendation |
avoid creating new instances repeatedly
ⓘ
reuse instances for performance ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.