07-29-2005, 11:00 PM
Quote:Psuedo code:Your psedo-code is a bit too high level when it comes to the "calculate difference" sections. Give us a little more detail.
Code:Display cities
Choose your city (this could be preset)
Find own timezone (also maybe preset)
Choose destination city
Find dest city timezone (Mine is in a database, but I am having some curious problems with that)
Calculate difference between own city and GMT, adjust time
Calculate difference betwen destination city and GMT, adjust time
I have not included DST anywhere in the world. Therefore times may vary. I bet you didn't know Kathmandu is in an ODD timezone (GMT+5:45)?
>anarky
Regarding Kathmandu, whereever that is, there are a bunch of places around the world that have partial hourly offsets. They want to be, or don't want to be in the same timezone with a neighboring country, city, or island.
Our program will put these places into one of the 24 timezone that the world's map indicates, with no adjustments.
*****