MonobjcMonobjc Documented Class Library
RangeOfUnitInUnitForDate Method (smaller, larger, date)
NamespacesMonobjc.FoundationNSCalendarRangeOfUnitInUnitForDate(NSCalendarUnit, NSCalendarUnit, NSDate)

Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time.

Original signature is '- (NSRange)rangeOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRange RangeOfUnitInUnitForDate(
	NSCalendarUnit smaller,
	NSCalendarUnit larger,
	NSDate date
)
Public Overridable Function RangeOfUnitInUnitForDate ( _
	smaller As NSCalendarUnit, _
	larger As NSCalendarUnit, _
	date As NSDate _
) As NSRange
public:
virtual NSRange RangeOfUnitInUnitForDate(
	NSCalendarUnit smaller, 
	NSCalendarUnit larger, 
	NSDate^ date
)
Parameters
smaller (NSCalendarUnit)
The smaller calendar unit.
larger (NSCalendarUnit)
The larger calendar unit.
date (NSDate)
The absolute time for which the calculation is performed.
Return Value
The range of absolute time values smaller can take on in larger at the time specified by date. Returns {NSNotFound, NSNotFound} if larger is not logically bigger than smaller in the calendar, or the given combination of units does not make sense (or is a computation which is undefined).
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)