I am using part of the current date in a schema on a web server, and I want to generate the same value on the device as on the server. Theoretically, I was thinking about the case when these two values would not be the same, and the values at both ends would not coincide.
What made me think - how exactly is [NSDate date] calculated when the application starts?
Edit: I guess I'm really asking how does the iPhone get its time from a reputable source? It seems to come from a mesh tower, I would suggest that everything is somehow synchronized. It's true?
Edit: It looks like it uses gettimeofday (), which uses the system clock. And from Apple docs , it looks like when you have your iPhone set to “Automatically installed,” it uses the correct time over the cellular network.
Thanks,
barfoon
source share