Instance Property インスタンスプロパティ

calendar

The default calendar to use when formatting date components. 日付構成要素を書式設定するときに使う省略時のカレンダー。

Declaration 宣言

@property(copy) NSCalendar *calendar;

Discussion 議論

The formatter uses the calendar in this property to format values that do not have an inherent calendar of their own. For example, the formatter uses this calendar when formatting an NSTimeInterval value. フォーマッタは、カレンダーをこのプロパティにおいて使って、それら自身の内在カレンダーを持たない値それらを書式設定します。例えば、フォーマッタはこのカレンダーを、NSTimeInterval値を書式設定する場合に使います。

The default value of this property is the calendar returned by the autoupdatingCurrentCalendar method of NSCalendar. Setting this property to nil causes the formatter to use the Gregorian calendar with the en_US_POSIX locale. このプロパティの省略時の値は、NSCalendarautoupdatingCurrentCalendarメソッドによって返されるカレンダーです。このプロパティをnilに設定することは、フォーマッタにグレゴリオ暦をen_US_POSIXロケールとともに使わせます。

See Also 参照

Configuring the Formatter Options フォーマッタオプションを構成設定する