Alex Rivera | Logout

How to convert NSDate into unix timestamp iphone sdk?

Asked 2010-06-08T12:03:30.777
152

How to convert an NSDate into Unix timestamp? I've read many posts which do the reverse. But I'm not finding anything related to my question.

Edit
Report

1 Answer

280

I believe this is the NSDate's selector you're looking for:

- (NSTimeInterval)timeIntervalSince1970
answered 2010-06-08T12:06:09.933

Your Answer