|
July 11, 2000 Local Times Around the World Tips: July 2000
Yehuda Shiran, Ph.D.
|
|
First thing you need to do is gather the local times in the cities you are interested in, wrt GMT. Here is the list we use in our example:
Next, we create the
and then the GMT:
Since we need to manipulate the hour part of the GMT, we split the string and store its parts in
Now, we are ready to adjust the GMT hour for the Daylight Saving Time difference, denoted as GMT:
For each city, we crate a current
set the hours according the GMT and the given offset:
and then write the date according to the local format definitions:
Press here to see the local time in cities around the world.
People who read this tip also read these tips: Look for similar tips by subject: |