NSCalendar.IsEqualToUnitGranularity(NSDate, NSDate, NSCalendarUnit) Method

Definition

[Foundation.Export("isDate:equalToDate:toUnitGranularity:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool IsEqualToUnitGranularity (Foundation.NSDate date1, Foundation.NSDate date2, Foundation.NSCalendarUnit unit);
abstract member IsEqualToUnitGranularity : Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarUnit -> bool
override this.IsEqualToUnitGranularity : Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarUnit -> bool

Parameters

date1
NSDate
date2
NSDate

Returns

Attributes

Applies to