mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-23 00:28:53 +00:00
Add isEqual: to CPDate
This commit is contained in:
1 parent
9f2ea190fc
commit
4ca0044bbd
1 file changed
+5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user