neha neha - 1 year ago 142
iOS Question

How to convert NSDate into unix timestamp iphone sdk?

How to convert an

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

Answer Source

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

- (NSTimeInterval)timeIntervalSince1970
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download