Type Method

dateCheckingResultWithRange:date:timeZone:duration:

Creates and returns a text checking result with the specified date, time zone, and duration.

Declaration

+ (NSTextCheckingResult *)dateCheckingResultWithRange:(NSRange)range date:(NSDate *)date timeZone:(NSTimeZone *)timeZone duration:(NSTimeInterval)duration;

Parameters

range

The range of the detected result.

date

The detected date.

timeZone

The detected time zone.

duration

The detected duration.

Return Value

Returns an NSTextCheckingResult with the specified range and a resultType of NSTextCheckingTypeDate.

See Also

Text Checking Results for Dates and Times

+ dateCheckingResultWithRange:date:

Creates and returns a text checking result with the specified date.

date

The date component of a type checking result.

duration

The duration component of a type checking result.

timeZone

The time zone component of a type checking result.