편집

다음을 통해 공유


NSCalendar.CompareDate(NSDate, NSDate, NSCalendarUnit) Method

Definition

[Foundation.Export("compareDate:toDate: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 Foundation.NSComparisonResult CompareDate (Foundation.NSDate date1, Foundation.NSDate date2, Foundation.NSCalendarUnit granularity);
abstract member CompareDate : Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarUnit -> Foundation.NSComparisonResult
override this.CompareDate : Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarUnit -> Foundation.NSComparisonResult

Parameters

date1
NSDate
date2
NSDate
granularity
NSCalendarUnit

Returns

Attributes

Applies to