Re: Convert kernel AbsoluteTime to a NSDate
Re: Convert kernel AbsoluteTime to a NSDate
- Subject: Re: Convert kernel AbsoluteTime to a NSDate
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 25 Mar 2008 11:02:32 +0100
I think this is an absolute time.
Don't know if it may help you, but have a look at http://developer.apple.com/qa/qa2004/qa1398.html
I think absolute time 0 corresponds to machine boot time.
Le 25 mars 08 à 10:32, Matt Burnett a écrit :
Thanks for your reply, but im not sure if this is going to help me.
It seems like the most i could get from that would be the value
which IOHIKeyboard is presently supplying. The following message
also says that it is essentially impossible to do what I want from
the kernel.
http://lists.apple.com/archives/darwin-kernel/2005/Jul/msg00124.html
I really need to get it in to a NSDate. At the very least, do you
(or anyone else) know what the reference time is which IOHIKeyboard
is using? It doesnt seem to be 1970.
On Mar 25, 2008, at 4:13 AM, John C. Randolph wrote:
On Mar 25, 2008, at 1:23 AM, Matt Burnett wrote:
I have a KEXT which hooks in to IOHIKeyboard-
>_keyboardEventAction. How can i convert the AbsoluteTime
(UnsignedWide) I receive to a NSDate? Thanks!
Try searching for "Using Mach Absolute Time Functions" in the
Kernel programming guide.
-jcr
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden