iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCICursorCalendarUnitDateFormatter
@interface SCICursorCalendarUnitDateFormatter
: NSObject <ISCICalendarUnitDateFormatter>
Defines a default date formatter to provide labels for different kind of tooltips, e.g. used by SCICursorModifier.
-
Creates a new instance of
SCICursorCalendarUnitDateFormatterclass.Declaration
Objective-C
- (nonnull instancetype)initWithLocale:(nonnull NSLocale *)locale andTimeZone:(nonnull NSTimeZone *)timeZone;Swift
convenience init(locale: Locale, andTimeZone timeZone: TimeZone)Parameters
localeThe
NSLocaleto use by this formatter.timeZoneThe
NSTimeZoneto use by this formatter. -
Creates a new instance of
SCICursorCalendarUnitDateFormatterclass.Declaration
Objective-C
- (nonnull instancetype)initWithLocale:(nonnull NSLocale *)locale andTimeZone:(nonnull NSTimeZone *)timeZone andCursorDateFormat:(nonnull NSString *)cursorDateFormat andGranularCursorDateFormat: (nonnull NSString *)granularCursorDateFormat;Swift
init(locale: Locale, andTimeZone timeZone: TimeZone, andCursorDateFormat cursorDateFormat: String, andGranularCursorDateFormat granularCursorDateFormat: String)Parameters
localeThe
NSLocaleto use by this formatter.timeZoneThe
NSTimeZoneto use by this formatter.cursorDateFormatThe
NSStringwith default format string string to use.granularCursorDateFormatThe
NSStringwith default format string string to use whenNSCalendarUnitis greater thanNSCalendarUnitMonth.
View on GitHub