我项目中的问题 [英] problem in my project

查看:64
本文介绍了我项目中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑如何启动我的项目时区".

有关我的项目的一些说明:

我希望放置一张世界地图的jpeg图片.
此地图应具有不同国家/地区的边界.
我想将光标移到不同的国家,并显示当地时间.

谢谢

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

推荐答案

一种方法是显示世界地图,并使用Imagemap定义其中的区域.
在每个定义的区域上都有一个alt标签,该标签读取(例如)Lima(本地tme),并在其中添加或减去Zulu(UTC),从而给出该国家/地区的时间.

将冰岛的Rekyavik用作祖鲁时间非常有用,因为它始终是UTC,并且没有夏令时.


有用于时区的DLL,并为时区提供了现成的地图API.

稍微进行一下谷歌搜索就可以为您找到这些.

还请记住,时间是很难控制的事情.
(不,我不是说像Who Who或Back to the future).

有不同的日历,不同的格式,夏令时,leap年,leap秒,丢失和增加的天数等.

尝试此操作之前,请先阅读.
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.


要做的第一件事也是最明显的事情是研究
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.


最明显的问题是,如果没有最遥远的人,为什么要这样做呢?提示如何开始?
The most obvious question is, why are you doing this if you don''t have the remotest clue how to even start ?


这篇关于我项目中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆