Re: What's the nicest way to turn an NSDate into a time_t
Re: What's the nicest way to turn an NSDate into a time_t
- Subject: Re: What's the nicest way to turn an NSDate into a time_t
- From: Denis Defreyne <email@hidden>
- Date: Thu, 2 Jun 2005 20:10:51 +0200
On 02 Jun 2005, at 19:44, Theodore H. Smith wrote:
What's the nicest way to turn an NSDate into a time_t?
I believe NSDate's -timeIntervalSince1970 ( http://
developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSDate.html#//apple_ref/doc/uid/20000188-
timeIntervalSince1970 ) is what you need. It returns the number of
seconds since 1970, and time_t's store the number of seconds since 1970.
Regards,
Denis Defreyne
--
mail: email@hidden
web: http://www.amonre.org/
_______________________________________________
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