<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-11933937.post509453354212238911..comments</id><updated>2011-01-19T05:11:58.593-06:00</updated><category term='pattern'/><category term='.net'/><category term='agile'/><category term='mysql'/><category term='ruby/rails'/><category term='humor'/><category term='efficiency'/><title type='text'>Comments on STEPHEN CHU . com: Parsing time in custom format in Ruby</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.stephenchu.com/feeds/509453354212238911/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html'/><author><name>Stephen Chu</name><uri>http://www.blogger.com/profile/07181510921622947661</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11933937.post-3496888809170324744</id><published>2011-01-19T05:11:58.593-06:00</published><updated>2011-01-19T05:11:58.593-06:00</updated><title type='text'>tnx, very useful</title><content type='html'>tnx, very useful</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/3496888809170324744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/3496888809170324744'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html?showComment=1295435518593#c3496888809170324744' title=''/><author><name>Carlo</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html' ref='tag:blogger.com,1999:blog-11933937.post-509453354212238911' source='http://www.blogger.com/feeds/11933937/posts/default/509453354212238911' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1148018705'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-8075834243074955373</id><published>2009-09-02T04:41:22.861-05:00</published><updated>2009-09-02T04:41:22.861-05:00</updated><title type='text'>Dear Stephen, it&amp;#39;s not a mistake that Time#str...</title><content type='html'>Dear Stephen, it&amp;#39;s not a mistake that Time#strftime is a private method.&lt;br /&gt;There is an important issue not mentioned in documentation.&lt;br /&gt;DateTime.to_time returns Time object only if time zone is UTC (otherwise returns Self). So if you want to convert your own time string to Time object, &lt;br /&gt;DateTime.strptime(&amp;quot;12/25/2007 01:00 AM EST&amp;quot;, &amp;quot;%m/%d/%Y %I:%M %p %Z&amp;quot;).&lt;b&gt;utc&lt;/b&gt;.to_time&lt;br /&gt;should be used. &lt;b&gt;utc&lt;/b&gt; and &lt;b&gt;to_time&lt;/b&gt; are defined in &amp;#39;actionsupport&amp;#39; module.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/8075834243074955373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/8075834243074955373'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html?showComment=1251884482861#c8075834243074955373' title=''/><author><name>Yuri Rumega</name><uri>http://rumega.myopenid.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html' ref='tag:blogger.com,1999:blog-11933937.post-509453354212238911' source='http://www.blogger.com/feeds/11933937/posts/default/509453354212238911' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1738664229'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-2386477932404870329</id><published>2008-09-29T06:15:00.000-05:00</published><updated>2008-09-29T06:15:00.000-05:00</updated><title type='text'>How about '2008-09-29 16:42:23.234'&lt;br&gt;The last th...</title><content type='html'>How about '2008-09-29 16:42:23.234'&lt;BR/&gt;The last three digits are milliseconds. Please help as I really have to parse this kind of date-times and I dont want to write some ugly parsing code...!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/2386477932404870329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/2386477932404870329'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html?showComment=1222686900000#c2386477932404870329' title=''/><author><name>Avishek</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html' ref='tag:blogger.com,1999:blog-11933937.post-509453354212238911' source='http://www.blogger.com/feeds/11933937/posts/default/509453354212238911' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1150780787'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-6408247757001536096</id><published>2008-02-19T21:19:00.000-06:00</published><updated>2008-02-19T21:19:00.000-06:00</updated><title type='text'>Thanks for this example, exactly what I was lookin...</title><content type='html'>Thanks for this example, exactly what I was looking for!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/6408247757001536096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/6408247757001536096'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html?showComment=1203477540000#c6408247757001536096' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html' ref='tag:blogger.com,1999:blog-11933937.post-509453354212238911' source='http://www.blogger.com/feeds/11933937/posts/default/509453354212238911' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1147015561'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-1589229316289036820</id><published>2008-01-21T18:00:00.000-06:00</published><updated>2008-01-21T18:00:00.000-06:00</updated><title type='text'>DateTime.strptime("12/25/2007 01:00 AM EST", "%m/%...</title><content type='html'>DateTime.strptime("12/25/2007 01:00 AM EST", "%m/%d/%Y %I:%M %p %Z")&lt;BR/&gt;&lt;BR/&gt;throws a 'hexadecimal digit expected' error on JRuby. I don't have an MRI install to quickly try this. Is this expected to work on JRuby?&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;Binil</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/1589229316289036820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/509453354212238911/comments/default/1589229316289036820'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html?showComment=1200960000000#c1589229316289036820' title=''/><author><name>Binil Thomas</name><uri>http://binil.wordpress.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2007/11/parsing-time-in-custom-format-in-ruby.html' ref='tag:blogger.com,1999:blog-11933937.post-509453354212238911' source='http://www.blogger.com/feeds/11933937/posts/default/509453354212238911' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-972834881'/></entry></feed>
