I’ve not found a answer to this question anywhere, but this seems like a typical problem: I have in Objective-C a “NSDate timestamp” that looks like “2010-07-14 16:30:41 +0200”. The java timestamp is just a long integer (for example:”976712400000″).
So, my question is: What is a Objective-c equivalent to java timestamp?
Thanks in advance for helping.
You can convert the format that NSDAte gives you to unix time by substracting the starting
date of unix time which is the 1st of January 1970. NSTimeInterval is simply the difference between two dates and you can get that in number of seconds: