Changeset 602 for trunk/Cocoa/Pester/Source/NSCalendarDate-NJRExtensions.m
- Timestamp:
- 12/21/09 22:12:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NSCalendarDate-NJRExtensions.m
r53 r602 31 31 } 32 32 33 + (NSCalendarDate *)dateWithDate:(NSDate *) date atTime:(NSDate *)time;33 + (NSCalendarDate *)dateWithDate:(NSDate *)aDate atTime:(NSDate *)aTime; 34 34 { 35 35 NSCalendarDate *calTime, *calDate; 36 if ( time == nil || date == nil) return nil;37 calTime = [NSCalendarDate dateWithDate: time];38 calDate = [NSCalendarDate dateWithDate: date];36 if (aTime == nil || aDate == nil) return nil; 37 calTime = [NSCalendarDate dateWithDate: aTime]; 38 calDate = [NSCalendarDate dateWithDate: aDate]; 39 39 if (calTime == nil || calDate == nil) return nil; 40 40 return [NSCalendarDate dateWithYear: [calDate yearOfCommonEra]
Note:
See TracChangeset
for help on using the changeset viewer.