Get time from remote server for ios app

I would like to know how my iOS application can get date-time from a remote server (NTP? Other ...?), And not with a local iPad datetime; and convert it to NSDate.

thanks

+4
source share
1 answer

https://github.com/jbenet/ios-ntp seems to be the NTP base for iOS, which gives you

[NSDate networkDate]; 
+4
source

Source: https://habr.com/ru/post/1415581/


All Articles