GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
TimeZone specific date query?  XML
Forum Index -> General
Author Message
bkboggy



Joined: 06/08/2014 07:01:52
Messages: 1
Offline

Currently, when I query TimeZone, there is no way to specify the date and time, so I'm stuck with the data pertaining to the date and time I post the query. The only time I can specify date is when I want to get a sunset and sunrise for a specific date.

What I'm trying to get is the local time of the queried coordinate, be it in the past, present or future.
marc



Joined: 08/12/2005 07:39:47
Messages: 4412
Offline

The timezoneId should be sufficient for you to get the information from your local environment.
For java for example you get it from the TimeZone class with the getOffset method:

http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html#getOffset%28long%29

Regards

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team