Differences From Artifact [7b7d9e6713]:
- File
src/OFDate.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 14438) [annotate] [blame] [check-ins using]
To Artifact [ada236f2a0]:
- File src/OFDate.m — part of check-in [504e13cf00] at 2017-05-13 22:38:02 on branch trunk — Reduce retain + autorelease (user: js, size: 14300) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
650 651 652 653 654 655 656 | return ret; } - (OFDate *)earlierDate: (OFDate *)otherDate { if (otherDate == nil) | | | | | | | | 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | return ret; } - (OFDate *)earlierDate: (OFDate *)otherDate { if (otherDate == nil) return self; if ([self compare: otherDate] == OF_ORDERED_DESCENDING) return otherDate; return self; } - (OFDate *)laterDate: (OFDate *)otherDate { if (otherDate == nil) return self; if ([self compare: otherDate] == OF_ORDERED_ASCENDING) return otherDate; return self; } - (of_time_interval_t)timeIntervalSince1970 { return _seconds; } |
︙ | ︙ |