• 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: Convert kernel AbsoluteTime to a NSDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Convert kernel AbsoluteTime to a NSDate (From: Matt Burnett <email@hidden>)
 >Re: Convert kernel AbsoluteTime to a NSDate (From: "John C. Randolph" <email@hidden>)
 >Re: Convert kernel AbsoluteTime to a NSDate (From: Matt Burnett <email@hidden>)

  • Prev by Date: Re: Convert kernel AbsoluteTime to a NSDate
  • Next by Date: CoreAnimation presets in Interface Builder
  • Previous by thread: Re: Convert kernel AbsoluteTime to a NSDate
  • Next by thread: Re: Convert kernel AbsoluteTime to a NSDate
  • Index(es):
    • Date
    • Thread