Click here to Skip to main content
15,886,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am confused how to start my project "timezone".

Some descriptions about my project:

I wish to place a jpeg image of a world map.
This map is to have the boundaries of different countries.
I would like to move the cursor over different countries and have the local time shown.

Thanks
Posted
Updated 5-Jul-10 21:52pm
v2
Comments
Sauro Viti 6-Jul-10 3:46am    
What you want to do seems to be clear, then what is your problem?
Dalek Dave 6-Jul-10 3:53am    
Edited to remove the general shoutiness and to improve the requirements of the question.
R. Giskard Reventlov 6-Jul-10 4:05am    
The idea of this forum is that you ask a question related to a specific issue that you cannot solve on your own without some external help and where you have already attempted to solve it. Tell us what you have already tried and where you are stuck - no one will teach you to create an entire project. That's what school is for.

One approach is to have the world map shown, and to define areas within it using an Imagemap.
On each of the defined areas have an alt tag that reads (for example) Lima (local tme), and adds to or subtracts from it the Zulu(UTC) , giving the time in that country.

Useful to use Rekyavik, Iceland as the Zulu time as it is always UTC and does not employ daylight savings.


There are DLL's for timezones, and ready made map api's for the the timezone areas.

A little light googling will obtain these for you.

Remember also that time is an incredibly hard thing to control.
(No, I don't mean like Dr Who or Back to the future).

There are different calendars, different formats, daylight savings, leap years, leap seconds, lost and gained days etc.

Read up before attempting this.
 
Share this answer
 
v2
The first and most obvious thing to do is to study the Timezone APIs[^] to see how to manage the data for the various locations around the world. Secondly you will need to create a mapping between the points on your image and the actual locations in the world that they correspond to. I have not tried this myself but there may well be some ready made algorithms thatGoogle knows about.
 
Share this answer
 
The most obvious question is, why are you doing this if you don't have the remotest clue how to even start ?
 
Share this answer
 
Comments
Dalek Dave 6-Jul-10 4:48am    
Christian, I often attempt things I know nothing about, in order to learn.
There is nothing wrong per se about a study excercise, and it is a fair question.
How did you learn stuff?
JAZEE 2 8-Jul-10 1:16am    
I FULLY AGREE WITH DALEK

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900