561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
|
}
- (id)copy
{
return [self retain];
}
- (of_comparison_result_t)compare: (id <OFComparing>)object
{
OFDate *otherDate;
if (![(id)object isKindOfClass: [OFDate class]])
@throw [OFInvalidArgumentException exception];
otherDate = (OFDate *)object;
if (self.timeIntervalSince1970 < otherDate.timeIntervalSince1970)
return OF_ORDERED_ASCENDING;
if (self.timeIntervalSince1970 > otherDate.timeIntervalSince1970)
return OF_ORDERED_DESCENDING;
return OF_ORDERED_SAME;
}
- (OFString *)description
{
|
|
<
<
|
<
<
|
|
|
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
|
}
- (id)copy
{
return [self retain];
}
- (of_comparison_result_t)compare: (OFDate *)date
{
if (![date isKindOfClass: [OFDate class]])
@throw [OFInvalidArgumentException exception];
if (self.timeIntervalSince1970 < date.timeIntervalSince1970)
return OF_ORDERED_ASCENDING;
if (self.timeIntervalSince1970 > date.timeIntervalSince1970)
return OF_ORDERED_DESCENDING;
return OF_ORDERED_SAME;
}
- (OFString *)description
{
|