How to get the real time instead of the system time

I wrote the code to get the current time. But that has a problem. It is because you can do illegitimate with iPhone’s time setting. I want to get the real current time. And as easily as possible. please tell me.

The only way you can get the guaranteed ‘real’ time would be to call a web service - which obviously relies on them having internet access, but that’s the only way.

See for example



http://api.geonames.org/timezone?lat=47.01&lng=10.2&username=demo

1 Like

I will read it. If there is something I do not understand, I will ask you a question.
Thanks,

For real time you could call an NTP server. Several of these around.