Objective-CclassFoundation
NSDateComponentsFormatter
@interface NSDateComponentsFormatter : NSFormatter <NSObservable, NSObserver>
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- classNSFormatter
- protocolNSObservable
- protocolNSObserver
Members 75
- method
+ (id)localizedStringFromDateComponents:(id)arg0 unitsStyle:(long long)arg1; - ivar
unsigned long long _allowedUnits;+0x30 - ivar
BOOL _allowsFractionalUnits;+0x5c - ivar
NSCalendar *_calendar;+0x18 - ivar
BOOL _collapsesLargestUnit;+0x5d - ivar
void *_fmt;+0x8 - ivar
NSString *_fmtLocaleIdent;+0x10 - ivar
long long _formattingContext;+0x38 - ivar
BOOL _includesApproximationPhrase;+0x5e - ivar
BOOL _includesTimeRemainingPhrase;+0x5f - ivar
struct os_unfair_lock_s { unsigned int _os_unfair_lock_opaque; } _lock;+0x58 - ivar
long long _maximumUnitCount;+0x50 - ivar
NSDate *_referenceDate;+0x20 - ivar
NSNumberFormatter *_unitFormatter;+0x28 - ivar
long long _unitsStyle;+0x40 - ivar
unsigned long long _zeroFormattingBehavior;+0x48 - method
- (void)_NSDateComponentsFormatter_commonInit; - method
- (id)_calendarFromDateComponents:(id)arg0; - method
- (id)_calendarOrCanonicalCalendar; - method
- (id)_canonicalizedDateComponents:(id)arg0 withCalendar:(id)arg1 usedUnits:(unsigned long long *)arg2 withReferenceDate:(id)arg3; - method
- (void)_ensureUnitFormatterWithLocale:(id)arg0; - method
- (void)_ensureUnitFormatterWithLocale_alreadyLocked:(id)arg0; - method
- (void)_flushFormatterCache_locked; - method
- (BOOL)_mayDecorateAttributedStringForObjectValue:(id)arg0; - method
- (BOOL)_updateFormatterCacheIfNeeded_locked:(id)arg0 unitsStyle:(long long)arg1; - method
- (unsigned long long)allowedUnits; - method
- (BOOL)allowsFractionalUnits; - method
- (id)calendar; - method
- (BOOL)collapsesLargestUnit; - method
- (id)copyWithZone:(struct _NSZone *)arg0; - method
- (void)dealloc; - method
- (void)encodeWithCoder:(id)arg0; - method
- (void)finalize; - method
- (long long)formattingContext; - method
- (BOOL)getObjectValue:(out id *)arg0 forString:(id)arg1 errorDescription:(out id *)arg2; - method
- (BOOL)includesApproximationPhrase; - method
- (BOOL)includesTimeRemainingPhrase; - method
- (id)init; - method
- (id)initWithCoder:(id)arg0; - method
- (long long)maximumUnitCount; - method
- (void)receiveObservedValue:(id)arg0; - method
- (id)referenceDate; - method
- (void)setAllowedUnits:(unsigned long long)arg0; - method
- (void)setAllowsFractionalUnits:(BOOL)arg0; - method
- (void)setCalendar:(id)arg0; - method
- (void)setCollapsesLargestUnit:(BOOL)arg0; - method
- (void)setFormattingContext:(long long)arg0; - method
- (void)setIncludesApproximationPhrase:(BOOL)arg0; - method
- (void)setIncludesTimeRemainingPhrase:(BOOL)arg0; - method
- (void)setMaximumUnitCount:(long long)arg0; - method
- (void)setReferenceDate:(id)arg0; - method
- (void)setUnitsStyle:(long long)arg0; - method
- (void)setZeroFormattingBehavior:(unsigned long long)arg0; - method
- (id)stringForObjectValue:(id)arg0; - method
- (id)stringForObjectValue:(id)arg0 withReferenceDate:(id)arg1; - method
- (id)stringFromDate:(id)arg0 toDate:(id)arg1; - method
- (id)stringFromDateComponents:(id)arg0; - method
- (id)stringFromTimeInterval:(double)arg0; - method
- (long long)unitsStyle; - method
- (unsigned long long)zeroFormattingBehavior; - property
@property unsigned long long allowedUnits; - property
@property BOOL allowsFractionalUnits; - property
@property(copy) NSCalendar *calendar; - property
@property BOOL collapsesLargestUnit; - property
@property(readonly, copy) NSString *debugDescription; - property
@property(readonly, copy) NSString *description; - property
@property long long formattingContext; - property
@property(readonly) unsigned long long hash; - property
@property BOOL includesApproximationPhrase; - property
@property BOOL includesTimeRemainingPhrase; - property
@property long long maximumUnitCount; - property
@property(copy) NSDate *referenceDate; - property
@property(readonly) Class superclass; - property
@property long long unitsStyle; - property
@property unsigned long long zeroFormattingBehavior;
Header
@interface NSDateComponentsFormatter : NSFormatter <NSObservable, NSObserver> { void *_fmt; NSString *_fmtLocaleIdent; NSCalendar *_calendar; NSDate *_referenceDate; NSNumberFormatter *_unitFormatter; unsigned long long _allowedUnits; long long _formattingContext; long long _unitsStyle; unsigned long long _zeroFormattingBehavior; long long _maximumUnitCount; struct os_unfair_lock_s _lock; BOOL _allowsFractionalUnits; BOOL _collapsesLargestUnit; BOOL _includesApproximationPhrase; BOOL _includesTimeRemainingPhrase; } @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (copy, readonly) NSString *description; @property (copy, readonly) NSString *debugDescription; @property long long unitsStyle; @property unsigned long long allowedUnits; @property unsigned long long zeroFormattingBehavior; @property (copy) NSCalendar *calendar; @property (copy) NSDate *referenceDate; @property BOOL allowsFractionalUnits; @property long long maximumUnitCount; @property BOOL collapsesLargestUnit; @property BOOL includesApproximationPhrase; @property BOOL includesTimeRemainingPhrase; @property long long formattingContext; + (id)localizedStringFromDateComponents:(id)dateComponents unitsStyle:(long long)unitsStyle; - (void)setUnitsStyle:(long long)unitsStyle; - (id)calendar; - (id)copyWithZone:(struct _NSZone *)zone; - (void)finalize; - (unsigned long long)allowedUnits; - (void)dealloc; - (BOOL)_mayDecorateAttributedStringForObjectValue:(id)objectValue; - (id)init; - (void)setCalendar:(id)calendar; - (id)stringFromDate:(id)date toDate:(id)toDate; - (long long)unitsStyle; - (id)stringFromTimeInterval:(double)timeInterval; - (void)encodeWithCoder:(id)coder; - (BOOL)getObjectValue:(out id *)objectValue forString:(id)forString errorDescription:(out id *)errorDescription; - (void)setFormattingContext:(long long)formattingContext; - (id)stringForObjectValue:(id)objectValue; - (long long)formattingContext; - (void)setAllowedUnits:(unsigned long long)allowedUnits; - (void)receiveObservedValue:(id)receiveObservedValue; - (id)initWithCoder:(id)coder; - (void)_NSDateComponentsFormatter_commonInit; - (void)setIncludesApproximationPhrase:(BOOL)includesApproximationPhrase; - (void)_ensureUnitFormatterWithLocale:(id)locale; - (void)setIncludesTimeRemainingPhrase:(BOOL)includesTimeRemainingPhrase; - (id)_calendarFromDateComponents:(id)dateComponents; - (id)_calendarOrCanonicalCalendar; - (id)_canonicalizedDateComponents:(id)_canonicalizedDateComponents withCalendar:(id)withCalendar usedUnits:(unsigned long long *)usedUnits withReferenceDate:(id)withReferenceDate; - (void)_ensureUnitFormatterWithLocale_alreadyLocked:(id)locale_alreadyLocked; - (void)_flushFormatterCache_locked; - (BOOL)_updateFormatterCacheIfNeeded_locked:(id)_updateFormatterCacheIfNeeded_locked unitsStyle:(long long)unitsStyle; - (BOOL)allowsFractionalUnits; - (BOOL)collapsesLargestUnit; - (BOOL)includesApproximationPhrase; - (BOOL)includesTimeRemainingPhrase; - (long long)maximumUnitCount; - (id)referenceDate; - (void)setAllowsFractionalUnits:(BOOL)allowsFractionalUnits; - (void)setCollapsesLargestUnit:(BOOL)collapsesLargestUnit; - (void)setMaximumUnitCount:(long long)maximumUnitCount; - (void)setReferenceDate:(id)referenceDate; - (void)setZeroFormattingBehavior:(unsigned long long)zeroFormattingBehavior; - (id)stringForObjectValue:(id)objectValue withReferenceDate:(id)withReferenceDate; - (id)stringFromDateComponents:(id)dateComponents; - (unsigned long long)zeroFormattingBehavior; @end