Objective C: Compare timeInMillis with current time
Posted
by Srivathsan Canchi
on Stack Overflow
See other posts from Stack Overflow
or by Srivathsan Canchi
Published on 2010-05-06T23:59:28Z
Indexed on
2010/05/07
0:08 UTC
Read the original article
Hit count: 221
Hello,
In my iPhone application, I need to calculate the time difference between the time a message was created on the server, and the time my phone received it.
The server (Java) puts in a number returned by System.currentTimeMillis()
as metadata along with the message.
How do I compare this number with the current time on the device? Could not find a suitable NSDate method to do this comparison.
Thanks in advance!
© Stack Overflow or respective owner