NSDateFormatterクラス
apple(mac)
解説
継承 | NSFormatter : NSObject |
準拠 | NSCoding (NSFormatter) |
NSCopying (NSFormatter) | |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/Foundation.framework |
使用可能 | Mac OS X v10.4以降 |
iOS 2.0以降 | |
定義 | NSDateFormatter.h |
概要
適合するプロトコル
メソッド
オブジェクトの変換
– dateFromString
– stringFromDate
+ localizedStringFromDate:dateStyle:timeStyle:
– getObjectValue:forString:range:error
– generatesCalendarDates
– setGeneratesCalendarDates
フォーマットとスタイルの管理
– dateFormat
– setDateFormat
– dateStyle
– setDateStyle
– timeStyle
– setTimeStyle:
+ dateFormatFromTemplate:options:locale:
属性の管理
– calendar
– setCalendar
– defaultDate
– setDefaultDate
– locale
– setLocale
– timeZone
– setTimeZone
– twoDigitStartDate
– setTwoDigitStartDate:
– gregorianStartDate
– setGregorianStartDate:
挙動バージョン管理
– formatterBehavior
– setFormatterBehavior
+ defaultFormatterBehavior
+ setDefaultFormatterBehavior
自然言語サポートの管理
– isLenient
– setLenient
– doesRelativeDateFormatting
– setDoesRelativeDateFormatting:
AM ・ PM 記号の管理
週記号の管理
– weekdaySymbols
– setWeekdaySymbols
– shortWeekdaySymbols
– setShortWeekdaySymbols
– veryShortWeekdaySymbols
– setVeryShortWeekdaySymbols:
– standaloneWeekdaySymbols
– setStandaloneWeekdaySymbols:
– shortStandaloneWeekdaySymbols
– setShortStandaloneWeekdaySymbols:
– veryShortStandaloneWeekdaySymbols
– setVeryShortStandaloneWeekdaySymbols:
Managing Month Symbols
– monthSymbols
– setMonthSymbols
– shortMonthSymbols
– setShortMonthSymbols
– veryShortMonthSymbols
– setVeryShortMonthSymbols:
– standaloneMonthSymbols
– setStandaloneMonthSymbols:
– shortStandaloneMonthSymbols
– setShortStandaloneMonthSymbols:
– veryShortStandaloneMonthSymbols
– setVeryShortStandaloneMonthSymbols:
Managing Quarter Symbols
– quarterSymbols
– setQuarterSymbols:
– shortQuarterSymbols
– setShortQuarterSymbols:
– standaloneQuarterSymbols
– setStandaloneQuarterSymbols:
– shortStandaloneQuarterSymbols
– setShortStandaloneQuarterSymbols:
サブクラス化の注意
引数
参照
メソッド