GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
Adding UTC time to timezone webservice
Forum Index
->
General
Author
Message
16/07/2010 13:00:15
Subject:
Adding UTC time to timezone webservice
nr1
Joined: 16/07/2010 12:56:46
Messages: 2
Offline
Hi,
can you add the UTC time in response for timezone query?
This would give us the possibility to check the current time against the utc time and therefore to get the current (local) timezone offset compared to utc.
Example:
http://ws.geonames.org/timezone?lat=40.7&lng=-74
16/07/2010 16:41:44
Subject:
Re:Adding UTC time to timezone webservice
saphir
Joined: 05/06/2010 22:44:39
Messages: 130
Offline
Hi,
Your system knows your SysTime and your SysOffset to UTC.
TimeZoneQuery returns the LocalTime.
LocalTime - SysTime + SysOffset gives you the LocalOffset to UTC... or the LocalTimeZone
Urs
Forum Index
->
General
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About