Timezone algorithm for software?
I want to create an iphone app to ensure that my children are safe in her hotel/home before I go to sleep at night. One resides in America (UTC-6.00) and the other is in Athens (UTS+2.00). I'm in Australia (UTC +10) = 14 Hours apart. The idea is, they will press a button on their Iphone app before they go to sleep at 10pm their time, every night. So its 10pm, they are about to sleep, they press the button. Before I go to sleep in Australia, I press a "check" button to see if they have checked in so to speak. What is the algorithm that I need to work out for the app so that I know for sure that they have activated the button within the last 24 hours? Do I measure it against the UTC, so +12 and -13? Any help would be much appreciated.
Record the time and date your child has pressed the button. It doesn't really matter what timezone you use to record it (although purists might insist it should be UTC) because you're only wanting to see that it's around "10pm local time" and that it's been approximately less than 24 hours since the last press.
Mind the summer/winter time changeover - EU, US, and AU all switch on different dates so your app needs to cope with a 25 hour difference for one day of the year, and your localtime conversions also need to understand this.
The standard library is based on Olson's original work, currently maintained by Eggert. See http://en.wikipedia.org/...z_database.
- Why can't I Update My iPhone 3G Software? I have a iPhone 3G. I did not have a sim card in it. I did not use the phone part of it. I just use the iPod part on it. On iTunes when I hit check for updates this message. "iTunes could not check for an update to carrier settings for your iPhone. An unknown error occurred (1631) ". What did I need to do to update my software?
- What doe it mean when it says itunes is currently downloading software for iphone? Well i plugged in my iphone, clicked restore and now it says this and i can't finish restoring it. What it the software its downloading?
- Unable to update iphone 3gs software? I just got an iphone 3gs and i'm trying to JB it so i can use it on tmobile but the software is on 3.1.2, when i try to update it to anything new it says "iPhone2.1_4.3_8F190_Restore.ipsw" was not copied to the iPhone (insert name) because it can't be played on this iphone." says this with later updates as well. Any help?
- Trying to update iPhone software, to 5.1.1? I have the latest iTunes, and when I plug in my iPhone, and choose "check for updates" it comes up with a window for me to choose a file. Saying it has to be a.ipsw file. I have windows xp and hve an have iPhone software 4.3.