• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Time Question (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Time Question (newbie)
      • From: Tom Gray <email@hidden>
References: 
 >Time Question (newbie) (From: Tom Gray <email@hidden>)

  • Prev by Date: Re: Examples of applications developed with Cocoa?
  • Next by Date: Setting tooltip delay?
  • Previous by thread: Time Question (newbie)
  • Next by thread: Re: Time Question (newbie)
  • Index(es):
    • Date
    • Thread