Changeset 366 for trunk/Cocoa/Pester/Source/PSAlarm.m
- Timestamp:
- 11/28/07 17:27:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarm.m
r364 r366 247 247 } 248 248 249 - (NSCalendarDate *)time; 250 { 249 - (NSDate *)time; 250 { 251 // XXX this works, but the result is unlikely to be useful until we move away from NSCalendarDate elsewhere 251 252 if (alarmType == PSAlarmInterval) [self _setDateFromInterval]; 252 return [[NSCalendarDate alloc] initWithYear: 0 253 month: 1 254 day: 1 255 hour: [alarmDate hourOfDay] 256 minute: [alarmDate minuteOfHour] 257 second: [alarmDate secondOfMinute] 258 timeZone: nil]; 253 254 NSCalendar *calendar = [NSCalendar currentCalendar]; 255 256 return [calendar dateFromComponents: 257 [calendar components: NSHourCalendarUnit|NSMinuteCalendarUnit|NSSecondCalendarUnit fromDate: alarmDate]]; 259 258 } 260 259
Note:
See TracChangeset
for help on using the changeset viewer.