<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Inside the AS3 Date class: Timezones and Daylight Saving Time</title>
	<atom:link href="http://www.computus.org/journal/?feed=rss2&#038;p=44" rel="self" type="application/rss+xml" />
	<link>http://www.computus.org/journal/?p=44</link>
	<description>Exploring Digital Horology</description>
	<lastBuildDate>Fri, 03 Sep 2010 05:32:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: World Cup instant Twitter replay &#124; Top Mobile Accessories</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-7778</link>
		<dc:creator>World Cup instant Twitter replay &#124; Top Mobile Accessories</dc:creator>
		<pubDate>Fri, 18 Jun 2010 01:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-7778</guid>
		<description>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</description>
		<content:encoded><![CDATA[<p>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: World Cup instant Twitter replay &#124; World News</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-7775</link>
		<dc:creator>World Cup instant Twitter replay &#124; World News</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-7775</guid>
		<description>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</description>
		<content:encoded><![CDATA[<p>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: World Cup instant Twitter replay: how we did it &#124; World News</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-7774</link>
		<dc:creator>World Cup instant Twitter replay: how we did it &#124; World News</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-7774</guid>
		<description>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</description>
		<content:encoded><![CDATA[<p>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: World Cup instant Twitter replay: how we did it #the guardian #world cup 2010 &#124; soccer ts</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-7773</link>
		<dc:creator>World Cup instant Twitter replay: how we did it #the guardian #world cup 2010 &#124; soccer ts</dc:creator>
		<pubDate>Thu, 17 Jun 2010 14:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-7773</guid>
		<description>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#039;s Date object to ensure that everything would work in every possible timezone. On the other, we&#039;d decided to [...]</description>
		<content:encoded><![CDATA[<p>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#39;s Date object to ensure that everything would work in every possible timezone. On the other, we&#39;d decided to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: World Cup instant Twitter replay: how we did it&#160;&#124;&#160;BB SPORT</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-7772</link>
		<dc:creator>World Cup instant Twitter replay: how we did it&#160;&#124;&#160;BB SPORT</dc:creator>
		<pubDate>Thu, 17 Jun 2010 13:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-7772</guid>
		<description>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</description>
		<content:encoded><![CDATA[<p>[...] final challenges emerged just as we were preparing to go live. On one hand, I delved into the depths of Flash&#8217;s Date object to ensure that everything would work in every possible timezone. On the other, we&#8217;d decided [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ward Ruth</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-7648</link>
		<dc:creator>Ward Ruth</dc:creator>
		<pubDate>Tue, 16 Mar 2010 16:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-7648</guid>
		<description>Thanks, very useful! Did note that for the getTimezone() method, I needed to use a more recent reference date (I develop on a Mac, so that may make a difference). I used 2000 instead of 0 (1900). Using the 0 date there was no difference in the timezoneOffset values for d1 and d2.</description>
		<content:encoded><![CDATA[<p>Thanks, very useful! Did note that for the getTimezone() method, I needed to use a more recent reference date (I develop on a Mac, so that may make a difference). I used 2000 instead of 0 (1900). Using the 0 date there was no difference in the timezoneOffset values for d1 and d2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-6897</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 19 Jun 2009 13:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-6897</guid>
		<description>Just wanted to say a quick thanks to all the folks who have IM&#039;d, Twittered and emailed me. I feel the love! I&#039;ve got a great new gig in Covent Garden and I&#039;m really excited about it. Normal service will be resumed asap...</description>
		<content:encoded><![CDATA[<p>Just wanted to say a quick thanks to all the folks who have IM&#8217;d, Twittered and emailed me. I feel the love! I&#8217;ve got a great new gig in Covent Garden and I&#8217;m really excited about it. Normal service will be resumed asap&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Immo</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-6889</link>
		<dc:creator>Immo</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-6889</guid>
		<description>Hi John, only noticed your reply now.- The project is done and dusted and working just fine. I ended up writing a class that picks up the DST from a data list that can be updated whenever a territory decides to change their rules. I think I&#039;ve got about 100 different entries there. Was quite a pain initially. I wrote a little script that detects the date for a specific day in the week, so to get e.g. the last Sunday in a month to switch DST. Works just fine but was very nervous when it came to the &#039;live&#039; switch for the first time in spring ; ) Once again, thanks a lot for all the info on this page which helped very much.</description>
		<content:encoded><![CDATA[<p>Hi John, only noticed your reply now.- The project is done and dusted and working just fine. I ended up writing a class that picks up the DST from a data list that can be updated whenever a territory decides to change their rules. I think I&#8217;ve got about 100 different entries there. Was quite a pain initially. I wrote a little script that detects the date for a specific day in the week, so to get e.g. the last Sunday in a month to switch DST. Works just fine but was very nervous when it came to the &#8216;live&#8217; switch for the first time in spring ; ) Once again, thanks a lot for all the info on this page which helped very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-5000</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 29 Jan 2009 22:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-5000</guid>
		<description>Hi there Immo - I share your pain. Your spot on so far. It&#039;s simple enough to determine &quot;standard time&quot; in any territory using a mixture of UTC (from the Date class) and some sort of TZD lookup table. 

It&#039;s also easy enough to get DST for the users current location using the functions in the article. The showstopper, as you&#039;ve correctly spotted, is determining if DST is in effect in another territory. 

Unlike TZDs, DST is not a global standard. The dates for adoption vary from territory to territory, and even within territories. Check out the DST rules for the Navajo and Hopi indian reservations in Arizona for some idea of how convoluted this can get!

The upshot of all this is that implementing a DST lookup in pure Actionscript would be a huge undertaking. Your best bet would be to use a lookup of the excellent TZ Database at http://www.twinsun.com/tz/tz-link.htm . You could either build yourself a web service (PHP uses the TZ DB) or you could build your app using AIR and use the internal SQLLite database.

Hope that helps :)
jd</description>
		<content:encoded><![CDATA[<p>Hi there Immo &#8211; I share your pain. Your spot on so far. It&#8217;s simple enough to determine &#8220;standard time&#8221; in any territory using a mixture of UTC (from the Date class) and some sort of TZD lookup table. </p>
<p>It&#8217;s also easy enough to get DST for the users current location using the functions in the article. The showstopper, as you&#8217;ve correctly spotted, is determining if DST is in effect in another territory. </p>
<p>Unlike TZDs, DST is not a global standard. The dates for adoption vary from territory to territory, and even within territories. Check out the DST rules for the Navajo and Hopi indian reservations in Arizona for some idea of how convoluted this can get!</p>
<p>The upshot of all this is that implementing a DST lookup in pure Actionscript would be a huge undertaking. Your best bet would be to use a lookup of the excellent TZ Database at <a href="http://www.twinsun.com/tz/tz-link.htm" rel="nofollow">http://www.twinsun.com/tz/tz-link.htm</a> . You could either build yourself a web service (PHP uses the TZ DB) or you could build your app using AIR and use the internal SQLLite database.</p>
<p>Hope that helps <img src='http://www.computus.org/journal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
jd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Immo</title>
		<link>http://www.computus.org/journal/?p=44&#038;cpage=1#comment-4998</link>
		<dc:creator>Immo</dc:creator>
		<pubDate>Thu, 29 Jan 2009 21:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.computus.org/journal/?p=44#comment-4998</guid>
		<description>Very interesting.- I am just building a world clock as a projector app in as3 where the user can set various clocks to their preferred cities. At the moment I am struggling to get my head around the DST. Let&#039;s say a user in Japan sets one of the clocks to &#039;London UK&#039;. Sounds pretty easy in theory: UTC + TZD + DST would mean e.g. &#039;London UK&#039; time in January : UTC + 0 + 0. But according to wwp.britishsummertime.co.uk the dates change to what the last Sunday of March or October is. Then again you get slightly different rules for the USA and every other territory.- Do you think there is some kind of clever proof way to find out whether a certain city in the world is actually in summertime or not (or whether it is using it at all) or do you think I will need to hardcode all the eventualities and check with if statements e.g. for &#039;London UK&#039; if (UTC + TZD &gt; 29 March) then DST = false? And next year update my code to Sunday the 28th of March? Is there a way to find out what the date for the last Sunday of a month would be in a certain year? I am kind of hoping there might be a clear logic solution to this. Any thoughts welcome. And thanks for the tips on this page. Already very helpful.</description>
		<content:encoded><![CDATA[<p>Very interesting.- I am just building a world clock as a projector app in as3 where the user can set various clocks to their preferred cities. At the moment I am struggling to get my head around the DST. Let&#8217;s say a user in Japan sets one of the clocks to &#8216;London UK&#8217;. Sounds pretty easy in theory: UTC + TZD + DST would mean e.g. &#8216;London UK&#8217; time in January : UTC + 0 + 0. But according to wwp.britishsummertime.co.uk the dates change to what the last Sunday of March or October is. Then again you get slightly different rules for the USA and every other territory.- Do you think there is some kind of clever proof way to find out whether a certain city in the world is actually in summertime or not (or whether it is using it at all) or do you think I will need to hardcode all the eventualities and check with if statements e.g. for &#8216;London UK&#8217; if (UTC + TZD &gt; 29 March) then DST = false? And next year update my code to Sunday the 28th of March? Is there a way to find out what the date for the last Sunday of a month would be in a certain year? I am kind of hoping there might be a clear logic solution to this. Any thoughts welcome. And thanks for the tips on this page. Already very helpful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
