<?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: Flex Date Utils &#8211; daysInYear, isLeapYear</title>
	<atom:link href="http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/</link>
	<description>Flex, AIR, ColdFusion, and everything in between</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:48:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Flex, AIR, and SQLITE Newbie &#171; Charlie&#39;s Flex Blog</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-837</link>
		<dc:creator>Flex, AIR, and SQLITE Newbie &#171; Charlie&#39;s Flex Blog</dc:creator>
		<pubDate>Sat, 09 Jan 2010 19:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-837</guid>
		<description>[...] Something else&#8230; http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Something else&#8230; <a href="http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/" rel="nofollow">http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-707</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Wed, 26 Aug 2009 20:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-707</guid>
		<description>@Tom,
I have updated the weekOfYear method so it now returns the correct weekOfYear (using the ISO standard).  I&#039;ve also added unit tests to the library, so any changes I may make should be caught before they&#039;re delivered out.</description>
		<content:encoded><![CDATA[<p>@Tom,<br />
I have updated the weekOfYear method so it now returns the correct weekOfYear (using the ISO standard).  I&#8217;ve also added unit tests to the library, so any changes I may make should be caught before they&#8217;re delivered out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junaid Abbasi</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-640</link>
		<dc:creator>Junaid Abbasi</dc:creator>
		<pubDate>Tue, 16 Jun 2009 04:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-640</guid>
		<description>Hi Gareth,

In your DateUtils.dateDiff(&quot;date&quot;, startDate, endDate) method, it returns -1 if startDate has a time component &gt; endDate&#039;s time component. It should return 0 if startDate is greater by &lt; 24 hrs.

-Junaid.</description>
		<content:encoded><![CDATA[<p>Hi Gareth,</p>
<p>In your DateUtils.dateDiff(&#8220;date&#8221;, startDate, endDate) method, it returns -1 if startDate has a time component &gt; endDate&#8217;s time component. It should return 0 if startDate is greater by &lt; 24 hrs.</p>
<p>-Junaid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-623</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Wed, 10 Jun 2009 19:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-623</guid>
		<description>Actually, there is a standard for this which I did not know about.  After doing a little more research, I will be updating this to use the standard (which appears to be documented very well &lt;a href=&quot;http://en.wikipedia.org/wiki/ISO_week_date&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;).  Thanks for bringing this to my attention.  I&#039;ll make an blog update when I&#039;ve made the changes.</description>
		<content:encoded><![CDATA[<p>Actually, there is a standard for this which I did not know about.  After doing a little more research, I will be updating this to use the standard (which appears to be documented very well <a href="http://en.wikipedia.org/wiki/ISO_week_date" target="_blank" rel="nofollow">here</a>).  Thanks for bringing this to my attention.  I&#8217;ll make an blog update when I&#8217;ve made the changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-621</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 09 Jun 2009 09:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-621</guid>
		<description>Just downloaded your sources, which sadly don&#039;t work for me. Your implementation for weekOfYear is too simplistic. You can&#039;t just divide the day of the year by 7 and return that as the week.

A proper implementation would use something like a &#039;minimal-days-in-first-week&#039; value (which is four in Germany) to figure out when the first week of the year starts, and when the last week ends. 

For example, the 29-Dec-2008 is in week 01/2009, and the 29-Dec-2009 is in week 53/2009. Note the year difference in the first example.

Cheers
Tom</description>
		<content:encoded><![CDATA[<p>Just downloaded your sources, which sadly don&#8217;t work for me. Your implementation for weekOfYear is too simplistic. You can&#8217;t just divide the day of the year by 7 and return that as the week.</p>
<p>A proper implementation would use something like a &#8216;minimal-days-in-first-week&#8217; value (which is four in Germany) to figure out when the first week of the year starts, and when the last week ends. </p>
<p>For example, the 29-Dec-2008 is in week 01/2009, and the 29-Dec-2009 is in week 53/2009. Note the year difference in the first example.</p>
<p>Cheers<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-570</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Tue, 14 Apr 2009 19:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-570</guid>
		<description>I checked all of my local files and December 22, 2008 was the last time I edited the files, so what&#039;s up there should be the latest version.

Thanks for checking out the library.</description>
		<content:encoded><![CDATA[<p>I checked all of my local files and December 22, 2008 was the last time I edited the files, so what&#8217;s up there should be the latest version.</p>
<p>Thanks for checking out the library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-568</link>
		<dc:creator>Phillip</dc:creator>
		<pubDate>Tue, 14 Apr 2009 10:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-568</guid>
		<description>Hi Gareth,

great work on this, i like how close you are to the CF Functions! I read, u updated the code on google, but when i look into the 1.0.4 release, all .as classes are of date 22.12.2008. 

maybe you find the time to commit your latest version.</description>
		<content:encoded><![CDATA[<p>Hi Gareth,</p>
<p>great work on this, i like how close you are to the CF Functions! I read, u updated the code on google, but when i look into the 1.0.4 release, all .as classes are of date 22.12.2008. </p>
<p>maybe you find the time to commit your latest version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-513</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Fri, 20 Feb 2009 03:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-513</guid>
		<description>Hey Dean,
No problem.  Glad that they&#039;re useful to you.  On to your questions:

1.  Yup, everything that I&#039;ve documented is in the google code base (and a few things are in there that I haven&#039;t yet blogged on such as Holiday and the DST stuff)
2.  Yes, weekOfYear is a little over halfway through DateUtils.as (line 303 according the the &quot;view source&quot; at googlecode).  The method accepts a date and returns the week of the year (from 1 to 53).  Here&#039;s the &lt;a href=&quot;/2008/12/flex-date-utils-dayofyear-and-weekofyear/&quot; rel=&quot;nofollow&quot;&gt;blog post&lt;/a&gt;
3.  I&#039;m not sure there&#039;s a right or a wrong way to do it, but that certainly sounds like a logical method of solving the problem :)  You could also perhaps try Date.parse( dateAsString ) on the date, but that can also return null (if the date isn&#039;t formatted correctly), so your way seems best.

Gareth</description>
		<content:encoded><![CDATA[<p>Hey Dean,<br />
No problem.  Glad that they&#8217;re useful to you.  On to your questions:</p>
<p>1.  Yup, everything that I&#8217;ve documented is in the google code base (and a few things are in there that I haven&#8217;t yet blogged on such as Holiday and the DST stuff)<br />
2.  Yes, weekOfYear is a little over halfway through DateUtils.as (line 303 according the the &#8220;view source&#8221; at googlecode).  The method accepts a date and returns the week of the year (from 1 to 53).  Here&#8217;s the <a href="/2008/12/flex-date-utils-dayofyear-and-weekofyear/" rel="nofollow">blog post</a><br />
3.  I&#8217;m not sure there&#8217;s a right or a wrong way to do it, but that certainly sounds like a logical method of solving the problem <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   You could also perhaps try Date.parse( dateAsString ) on the date, but that can also return null (if the date isn&#8217;t formatted correctly), so your way seems best.</p>
<p>Gareth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-511</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Thu, 19 Feb 2009 14:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-511</guid>
		<description>Gareth,
Thanks for your utilities.  First, have you updated the Google Code with the latest items posted for the date utilities?

Second.  When I as looking for the Week of Year, I didn&#039;t notice that you already had something in the Date Utilities.  Maybe you just added it and hadn&#039;t put it on the Google Code.  I was wondering if your method handles the issues discussed here (http://www.actionscript.org/forums/showthread.php3?t=65502).  I used the code from this forum and converted it to AS3 code to work for my application.

Third.  I probably didn&#039;t do this the right way, but I need to convert a date with a month abbreviation.  So, I just modified your code to have an array for abbreviated months and then created a function to get the month number from the abbreviation.

Again, thanks for your code.</description>
		<content:encoded><![CDATA[<p>Gareth,<br />
Thanks for your utilities.  First, have you updated the Google Code with the latest items posted for the date utilities?</p>
<p>Second.  When I as looking for the Week of Year, I didn&#8217;t notice that you already had something in the Date Utilities.  Maybe you just added it and hadn&#8217;t put it on the Google Code.  I was wondering if your method handles the issues discussed here (<a href="http://www.actionscript.org/forums/showthread.php3?t=65502" rel="nofollow">http://www.actionscript.org/forums/showthread.php3?t=65502</a>).  I used the code from this forum and converted it to AS3 code to work for my application.</p>
<p>Third.  I probably didn&#8217;t do this the right way, but I need to convert a date with a month abbreviation.  So, I just modified your code to have an array for abbreviated months and then created a function to get the month number from the abbreviation.</p>
<p>Again, thanks for your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2009/01/flex-date-utils-daysinyear-isleapyear/comment-page-1/#comment-184</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Wed, 07 Jan 2009 18:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=129#comment-184</guid>
		<description>Thanks, Nate.  I was just wondering how your DateTime/DST stuff was coming along.  Should make for a nice, full-featured package once it&#039;s done.  Can&#039;t wait :)</description>
		<content:encoded><![CDATA[<p>Thanks, Nate.  I was just wondering how your DateTime/DST stuff was coming along.  Should make for a nice, full-featured package once it&#8217;s done.  Can&#8217;t wait <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
