FROM : haresh vavdiya
DATE : Sat May 31 13:22:59 2008
Hi Friends,
I have successfully get current time but now i want to to digital
clock but for that i need to have current minute and hours, so how can i get
this?
I found some method of NSCalenderDate which give us hours and
minutes i can't get current time and date it display 2001 jan 1
my code is
NSCalendarDate *currentTime = [[NSCalendarDate alloc]
initWithTimeIntervalSinceReferenceDate:000000];
int minuteInc = (minute>=0 ? minute-[currentTime
minuteOfHour] : 0);
int hourInc = (hour>=0 ? hour-[currentTime hourOfDay] :
0);
[self incrementHour: hourInc andMinute:minuteInc];
[self time];
for current time and date we have to gice one arguments intead of 000000 so
that we can get curretn time but i have tried many digit but i can't proper
output,
if anyone knoe please guide me
DATE : Sat May 31 13:22:59 2008
Hi Friends,
I have successfully get current time but now i want to to digital
clock but for that i need to have current minute and hours, so how can i get
this?
I found some method of NSCalenderDate which give us hours and
minutes i can't get current time and date it display 2001 jan 1
my code is
NSCalendarDate *currentTime = [[NSCalendarDate alloc]
initWithTimeIntervalSinceReferenceDate:000000];
int minuteInc = (minute>=0 ? minute-[currentTime
minuteOfHour] : 0);
int hourInc = (hour>=0 ? hour-[currentTime hourOfDay] :
0);
[self incrementHour: hourInc andMinute:minuteInc];
[self time];
for current time and date we have to gice one arguments intead of 000000 so
that we can get curretn time but i have tried many digit but i can't proper
output,
if anyone knoe please guide me
| Related mails | Author | Date |
|---|---|---|
| haresh vavdiya | May 31, 13:22 | |
| Andreas Mayer | May 31, 15:53 | |
| mmalc crawford | May 31, 20:47 |






Cocoa mail archive

