Add isEqual: to CPDate

This commit is contained in:
Ross Boucher
2009-10-28 23:38:58 -07:00
parent 9f2ea190fc
commit 4ca0044bbd
+5
View File
@@ -127,6 +127,11 @@ var CPDateReferenceDate = new Date(Date.UTC(2001,1,1,0,0,0,0));
return [[CPDate date] timeIntervalSinceReferenceDate];
}
- (BOOL)isEqual:(CPDate)aDate
{
return [self isEqualToDate:aDate];
}
- (BOOL)isEqualToDate:(CPDate)anotherDate
{
return !(self < anotherDate || self > anotherDate);