Returns by reference the starting time and duration of a given calendar unit that contains a given date.
Original signature is '- (BOOL)rangeOfUnit:(NSCalendarUnit)unit startDate:(NSDate **)datep interval:(NSTimeInterval *)tip forDate:(NSDate *)date'
Available in Mac OS X v10.5 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual bool RangeOfUnitStartDateIntervalForDate( NSCalendarUnit unit, out NSDate datep, out double tip, NSDate date )
Public Overridable Function RangeOfUnitStartDateIntervalForDate ( _ unit As NSCalendarUnit, _ <OutAttribute> ByRef datep As NSDate, _ <OutAttribute> ByRef tip As Double, _ date As NSDate _ ) As Boolean
public: virtual bool RangeOfUnitStartDateIntervalForDate( NSCalendarUnit unit, [OutAttribute] NSDate^% datep, [OutAttribute] double% tip, NSDate^ date )
Parameters
- unit (NSCalendarUnit)
- A calendar unit (see “Calendar Units” for possible values).
- datep (NSDate%)
- Upon return, contains the starting time of the calendar unit unit that contains the date date
- tip (Double%)
- Upon return, contains the duration of the calendar unit unit that contains the date date
- date (NSDate)
- A date.
Return Value
YES if the starting time and duration of a unit could be calculated, otherwise NO.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)