将地理/ GPS坐标解析为当前当地时间
问题描述:
I am trying to resolve a location's coordinates (latitude, longitude), to an accurate current local time.
For example, let's say I have a list of locations on a website. When I look at a specific location I will always know its latitude/longitude (it could be anywhere in the world). I would like to display the current time at that location.
I can write something from scratch by myself, but I was wondering if there are any libraries/plugins that would allow me to do this faster.
Thanks,
我正在尝试将位置的坐标(纬度,经度)解析为准确的当前本地时间。 p>
例如,假设我有一个网站上的位置列表。 当我查看特定位置时,我将始终知道它的纬度/经度(它可能在世界的任何地方)。 我想在那个位置显示当前时间。 p>
我可以自己写一些东西,但我想知道是否有任何库/插件可以让我这样做 更快。 p>
谢谢, p> div>