I need help with NSCalendarDate....
How do I convert the following functionality to iPhone app?
any ideas?
How do I convert the following functionality to iPhone app?
PHP:
NSCalendarDate *myDate = [[NSCalendarDate calendarDate]
dateByAddingYears:0
months:0
days:0
hours:-[[NSCalendarDate calendarDate] hourOfDay]
minutes:-[[NSCalendarDate calendarDate] minuteOfHour]
seconds:-[[NSCalendarDate calendarDate] secondOfMinute]];
int hours = 12;
int minutes = floor(hours * 60);
return [myDate dateByAddingYears:0 months:0 days:0 hours:hours minutes:minutes seconds:0];
any ideas?