<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Current time by latitude & longitude"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Current time by latitude & longitude"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Current time by latitude &amp; longitude</title>
				<description><![CDATA[ Hi

http://ws.geonames.org/timezone?lat=49.28&lng=-122.91 returns the current time of a point.

In the timezone file, there is no way to calculate the current time  :cry: 

Am I missing something here? Please help.

Also, what is rawOffset & how to calculate it from the timezone file if possible?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1236.page#5297</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1236.page#5297</link>
				<pubDate><![CDATA[Mon, 26 Jan 2009 08:01:33]]> GMT</pubDate>
				<author><![CDATA[ riab]]></author>
			</item>
			<item>
				<title>Re:Current time by latitude &amp; longitude</title>
				<description><![CDATA[ As far as I can tell everything you need to calculate local times for your users is there.

Get your servers time by javascript, php or whatever.  Convert to say GMT.  So if your server were in Barbados, using the data in 'time_zones', you would take 4 hours off.
Now if your user was in Antarctica/Davis you add 7 hours on as specified in gmt_offset.

That's one way to do it.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1236.page#5301</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1236.page#5301</link>
				<pubDate><![CDATA[Mon, 26 Jan 2009 11:42:41]]> GMT</pubDate>
				<author><![CDATA[ terryh]]></author>
			</item>
			<item>
				<title>Re:Current time by latitude &amp; longitude</title>
				<description><![CDATA[ Thanks for your reply terryh

What about the date the DST starts & ends?  for example in north america the Daylight Saving Time are to be turned forward by one hour on the second Sunday in March and turned back on the first Sunday of November.
How do I know these dates for each country or city in the world?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1236.page#5311</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1236.page#5311</link>
				<pubDate><![CDATA[Wed, 28 Jan 2009 03:52:06]]> GMT</pubDate>
				<author><![CDATA[ riab]]></author>
			</item>
			<item>
				<title>Re:Current time by latitude &amp; longitude</title>
				<description><![CDATA[ The daylight saving time rules are rather complex and not topic of the GeoNames project. Most applications and programming environments use the "tz database":
http://www.twinsun.com/tz/tz-link.htm
In java for instance this information is already included in the standard edition, try to find how to access the tz database from your favourite programming environment.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1236.page#5312</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1236.page#5312</link>
				<pubDate><![CDATA[Wed, 28 Jan 2009 06:10:16]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:Current time by latitude &amp; longitude</title>
				<description><![CDATA[ Thanks marc, i totaly forgot about the TimeZone class in java  :shock: it has all what I need to get the correct time for the timezone  :D ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1236.page#5313</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1236.page#5313</link>
				<pubDate><![CDATA[Wed, 28 Jan 2009 07:36:55]]> GMT</pubDate>
				<author><![CDATA[ riab]]></author>
			</item>
	</channel>
</rss>