Re: Uptime to Date/time
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