283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
|
- (BOOL)isEqual: (id)object
{
OFDate *otherDate;
if (![object isKindOfClass: [OFDate class]])
return NO;
otherDate = (OFDate*)object;
if (otherDate->seconds != seconds ||
otherDate->microseconds != microseconds)
return NO;
return YES;
}
|
|
|
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
|
- (BOOL)isEqual: (id)object
{
OFDate *otherDate;
if (![object isKindOfClass: [OFDate class]])
return NO;
otherDate = object;
if (otherDate->seconds != seconds ||
otherDate->microseconds != microseconds)
return NO;
return YES;
}
|
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
|
{
OFDate *otherDate;
if (![object isKindOfClass: [OFDate class]])
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
otherDate = (OFDate*)object;
if (seconds < otherDate->seconds)
return OF_ORDERED_ASCENDING;
if (seconds > otherDate->seconds)
return OF_ORDERED_DESCENDING;
if (microseconds < otherDate->microseconds)
|
|
|
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
|
{
OFDate *otherDate;
if (![object isKindOfClass: [OFDate class]])
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
otherDate = object;
if (seconds < otherDate->seconds)
return OF_ORDERED_ASCENDING;
if (seconds > otherDate->seconds)
return OF_ORDERED_DESCENDING;
if (microseconds < otherDate->microseconds)
|