Is there a good + easy way to convert Oracle Timestamp to NSDate on iPhone? I asked my client to give me a DB with timestamps as a Unix timestamp (doubles from 0 = early 1970), but it seems to be a problem for them. Thank.
Note. You can easily convert Unix timestamp to NSDate with
[NSDate dateWithTimeIntervalSince1970: timestamp]
What I need to do is convert the Oracle timestamp to double, for example, a Unix timestamp. The rest is easy.
Additional Information: I need Objective-C code to run on iPhone using NSStrings that represent dates in Oracle Timestamp format. Stack Overflow.site/questions/1734268 / ... suggests using NSDateFormatter, but I donβt know which format to use, and the initialization method for formatting proposed in this thread generates a warning for me.
source
share