MonobjcMonobjc Documented Class Library
OrdinalityOfUnitInUnitForDate Method (smaller, larger, date)
NamespacesMonobjc.FoundationNSCalendarOrdinalityOfUnitInUnitForDate(NSCalendarUnit, NSCalendarUnit, NSDate)

Returns, for a given absolute time, the ordinal number of a smaller calendar unit (such as a day) within a specified larger calendar unit (such as a week).

Original signature is '- (NSUInteger)ordinalityOfUnit:(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 NSUInteger OrdinalityOfUnitInUnitForDate(
	NSCalendarUnit smaller,
	NSCalendarUnit larger,
	NSDate date
)
Public Overridable Function OrdinalityOfUnitInUnitForDate ( _
	smaller As NSCalendarUnit, _
	larger As NSCalendarUnit, _
	date As NSDate _
) As NSUInteger
public:
virtual NSUInteger OrdinalityOfUnitInUnitForDate(
	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 ordinal number of smaller within larger at the time specified by date. Returns 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)