How to convert long timestamp to UTC timestamp on Objective C
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-04-15T18:13:36Z
Indexed on
2010/04/18
21:33 UTC
Read the original article
Hit count: 621
objective-c
|iphone
Hey I had a iphone app, the code has a method to retrieve current time stamp from iphone and upload to server. Here is my code: long long timestampMillis = (long long)([[NSDate date] timeIntervalSince1970] * 1000); However, one of customer use the app in Japan sent data shown on server is tomorrow time. How can I retrieve UTC timestamp?
Thanks advanced
© Stack Overflow or respective owner