<?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: An Interesting &quot;Feature&quot; In Ruby&#8217;s DateTime.Parse</title>
	<atom:link href="http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Wed, 19 Jun 2013 18:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Eric Anderson</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-3230</link>
		<dc:creator>Eric Anderson</dc:creator>
		<pubDate>Thu, 09 May 2013 21:55:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-3230</guid>
		<description>Great post! Our team discovered this very same problem. Totally a pain the ass. What&#039;s the best way to check for garbage when parsing dates? What did you end up coming up with?</description>
		<content:encoded><![CDATA[<p>Great post! Our team discovered this very same problem. Totally a pain the ass. What&#8217;s the best way to check for garbage when parsing dates? What did you end up coming up with?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: workmad3</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-1335</link>
		<dc:creator>workmad3</dc:creator>
		<pubDate>Fri, 17 Dec 2010 09:04:33 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-1335</guid>
		<description>Just found another interesting &#039;feature&#039; of DateTime here:

DateTime.parse(&quot;10&quot;) =&gt; #&lt;DateTime: 2010-12-10T00:00:00+00:00 (4911081/2,0/1,2299161)&gt;

This works for all numeric strings &gt;= &quot;10&quot; and less than &quot;31&quot; (although this depends on month, I expect). It gives you an invalid date if you just do

DateTime.parse(&quot;1&quot;)</description>
		<content:encoded><![CDATA[<p>Just found another interesting &#8216;feature&#8217; of DateTime here:</p>
<p>DateTime.parse(&#8220;10&#8243;) => #<datetime: 2010-12-10T00:00:00+00:00 (4911081/2,0/1,2299161)></p>
<p>This works for all numeric strings >= &#8220;10&#8243; and less than &#8220;31&#8243; (although this depends on month, I expect). It gives you an invalid date if you just do</p>
<p>DateTime.parse(&#8220;1&#8243;)</datetime:></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Meehan</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-1334</link>
		<dc:creator>Adam Meehan</dc:creator>
		<pubDate>Fri, 17 Dec 2010 08:59:02 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-1334</guid>
		<description>It is pretty crazy and it&#039;s one of the reasons I created my timeliness gem https://github.com/adzap/timeliness. It is also much faster and allows greater control and custom formats.</description>
		<content:encoded><![CDATA[<p>It is pretty crazy and it&#8217;s one of the reasons I created my timeliness gem <a href="https://github.com/adzap/timeliness" rel="nofollow">https://github.com/adzap/timeliness</a>. It is also much faster and allows greater control and custom formats.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Meehan</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-1333</link>
		<dc:creator>Adam Meehan</dc:creator>
		<pubDate>Fri, 17 Dec 2010 08:55:46 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-1333</guid>
		<description>It is pretty crazy and one of the reasons I created my timeliness gem https://github.com/adzap/timeliness. The gem is also a lot faster and allows much greater control and custom formats.</description>
		<content:encoded><![CDATA[<p>It is pretty crazy and one of the reasons I created my timeliness gem <a href="https://github.com/adzap/timeliness" rel="nofollow">https://github.com/adzap/timeliness</a>. The gem is also a lot faster and allows much greater control and custom formats.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derick.bailey</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-1332</link>
		<dc:creator>derick.bailey</dc:creator>
		<pubDate>Thu, 16 Dec 2010 22:59:38 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-1332</guid>
		<description>you were never going to use ruby, anyways, john. :)</description>
		<content:encoded><![CDATA[<p>you were never going to use ruby, anyways, john. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sonmez</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-1331</link>
		<dc:creator>John Sonmez</dc:creator>
		<pubDate>Thu, 16 Dec 2010 22:17:22 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-1331</guid>
		<description>Thats it I&#039;m not using Ruby.</description>
		<content:encoded><![CDATA[<p>Thats it I&#8217;m not using Ruby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Keeble</title>
		<link>http://lostechies.com/derickbailey/2010/12/15/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse/#comment-1330</link>
		<dc:creator>Paul Keeble</dc:creator>
		<pubDate>Thu, 16 Dec 2010 00:26:17 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2010/12/14/an-interesting-quot-feature-quot-in-ruby-s-datetime-parse.aspx#comment-1330</guid>
		<description>Java&#039;s Date parsing is horribly overspecified and SimpleDateFormat is anything but Simple. But accepting any string that contains anywhere the first 3 characters of a day of the week is dangerous. No one would expect it to work that way!

Thanks for the info, I&#039;ll make sure to defend my inputs to parse better.</description>
		<content:encoded><![CDATA[<p>Java&#8217;s Date parsing is horribly overspecified and SimpleDateFormat is anything but Simple. But accepting any string that contains anywhere the first 3 characters of a day of the week is dangerous. No one would expect it to work that way!</p>
<p>Thanks for the info, I&#8217;ll make sure to defend my inputs to parse better.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
