• 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: Uptime to Date/time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uptime to Date/time


  • Subject: Re: Uptime to Date/time
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 5 Nov 2005 21:14:28 +0100

Am 30.10.2005 um 16:36 schrieb David:
I am using Uptime and converting it to milliseconds computer has been up. This value is being used to time stamp data every couple seconds. How to I convert the milliseconds of uptime to an actual date and time down to milliseconds? Or more precisely how does one acquire the date/time the Uptime routine is basing its calculation on?

Don't use uptime. Use NSDate and store that. Uptime timestamps are pretty pointless, as they get reset after each system reboot -- thus, it's impossible to turn that back into a date. Not to mention that, as the name says, it's only intended for you to measure how long your Mac's been running.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: application damaged or incomplete
  • Next by Date: Re: Question about associating file types to applications
  • Previous by thread: Re: application damaged or incomplete
  • Next by thread: Re: Question about associating file types to applications
  • Index(es):
    • Date
    • Thread