Re: Time Question (newbie)
Re: Time Question (newbie)
- Subject: Re: Time Question (newbie)
- From: Jonathan Jackel <email@hidden>
- Date: Sun, 19 Jan 2003 20:57:14 -0500
You should check out NSCalendarDate, particularly
years:months:days:hours:minutes:seconds:sinceDate:
Jonathan
On Sunday, January 19, 2003, at 06:48 PM, Tom Gray wrote:
Hi Guys,
As always, thanks!
I am trying to add a cumulative time or running time to my
application. Part of my "pay the shareware fee" nag.
I have seen quite a few "Date" objects in Cocoa but I have not found a
good way to get a cumulative or elapsed time object. (I would like to
display a clock in hhh:mm format or dd:hh:mm format.)
Currently I am noting the date when the application launches and
quits. I get the time interval between the launch and quit (a double
or NSTimeInterval) and save that double in my prefs.
I now want to format and display that elapsed time. I can't seem to
find a Cocoa class that handles elapsed time.
Any ideas?
Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.