This question already has an answer here:
I am new to iOS development. I am trying to build an app which can primarily do two things:
a. get user's system time (say, his phone is in London, so his time)
b. get the time in a given location (say, San Francisco)
and then, I want to calculate the difference in time between the location (e.g. London, UK is 8 hours ahead of San Francisco, CA)
Can someone please help me with suggestions for how can I get (a) and (b)?
If you're looking for local time you can use:
You would probably just need two text fields and have the user compare the time difference.
For both (a) and (b):