Friday, 15 January 2010

ios - How can I get the actual date and time if the device date and time are inaccurate? -



ios - How can I get the actual date and time if the device date and time are inaccurate? -

i noticed if set device time manually, , turn off automatic time sync on ios device, [nsdate date] returns date , time assuming device time correct--which may not be.

since docs mention nsdate has sort of sync ntp, wondering if there built-in way accurate date , time instead of having assume device date , time correct.

perhaps https://github.com/jbenet/ios-ntp can help you? it's library can fetch date , time time server.

ios nsdate ntp

No comments:

Post a Comment