I know that there is a method [NSDate date], which returns the current date and time from the iPhone clock. But if this time was manually changed, it would run my code. Is it possible to get world time, not current time from the iPhone?
Yes, you can have the correct current time using ntp / sntp.
The following uris can help you write your own implementation:
Simple NTP Client for iOS: http://code.google.com/p/ios-ntp/
NSDate from a time server: http://pathoneycutt.com/2010/12/nsdate-from-time-server/
Source: https://habr.com/ru/post/949071/More articles:How to create a tiff file? - phpWhat happens when the timestamp overflows (rowversion)? - sql-serverColor Space Options for CIContext - quartz-graphicshow can I track how many users visit my site - pythonIs there a way to get the date and time protected from unauthorized access on iPhone? - datetimepython: how to find consecutive pairs of letters by regular expression? - pythonDoes datanitro stop working after 30 days? - datanitroHow to get IntPtr for a structure? - c #Return words with double consecutive letters - pythonStrange looking guava code - javaAll Articles