How To Get Current Time On Another City Correctly?
I have managed to read the web service to get current time of any given city. I could get 2 important values from web service, current time (String) and the offset. Question is How
Solution 1:
Option 1 is far better, in my eyes. Most cell phones have amazingly accurate time as time synchronization is an integral part of GSM and CDMA. Beyond that, I would far prefer a clock to work offline than to require internet connectivity.
If you are worried about ensuring accuracy in the face of incorrect system time, consider placing a call to a web service to get the current time for verification.
This verification could be done in the background, but keep in mind that web services are not the best time sync providers. I would let anything with under 5 minute difference go as it could be due to your server being out of sync or the call taking too long.
Post a Comment for "How To Get Current Time On Another City Correctly?"