<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Virtuous Code - Latest Comments in ISO8601 Dates in Ruby</title><link>http://virtuouscode.disqus.com/</link><description></description><atom:link href="https://virtuouscode.disqus.com/iso8601_dates_in_ruby/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 14 Feb 2013 22:57:01 -0000</lastBuildDate><item><title>Re: ISO8601 Dates in Ruby</title><link>http://devblog.avdi.org/2009/10/25/iso8601-dates-in-ruby/#comment-799900440</link><description>&lt;p&gt;There is a gem that provides some support for this.&lt;br&gt;gem listing: &lt;a href="http://rubygems.org/gems/iso8601" rel="nofollow noopener" target="_blank" title="http://rubygems.org/gems/iso8601"&gt;http://rubygems.org/gems/is...&lt;/a&gt;&lt;br&gt;source: &lt;a href="https://github.com/arnau/ISO8601" rel="nofollow noopener" target="_blank" title="https://github.com/arnau/ISO8601"&gt;https://github.com/arnau/IS...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Here's a small session using it:&lt;br&gt;&amp;gt;&amp;gt; require 'iso8601'&lt;br&gt;&amp;gt;&amp;gt; include ISO8601&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="http://Duration.new" rel="nofollow noopener" target="_blank" title="Duration.new"&gt;Duration.new&lt;/a&gt;(659).to_s&lt;br&gt;=&amp;gt; "PT659S"&lt;br&gt;&amp;gt;&amp;gt; (&lt;a href="http://Duration.new" rel="nofollow noopener" target="_blank" title="Duration.new"&gt;Duration.new&lt;/a&gt;(659) - &lt;a href="http://Duration.new" rel="nofollow noopener" target="_blank" title="Duration.new"&gt;Duration.new&lt;/a&gt;(323)).to_s&lt;br&gt;=&amp;gt; "PT5M36S"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilson Bilkovich</dc:creator><pubDate>Thu, 14 Feb 2013 22:57:01 -0000</pubDate></item><item><title>Re: ISO8601 Dates in Ruby</title><link>http://devblog.avdi.org/2009/10/25/iso8601-dates-in-ruby/#comment-799587500</link><description>&lt;p&gt;The ruby 'time' library only handles the xmlschema time discussed.  I'm unaware of implementations of the full iso8601 spec. Perhaps one of the microformats tools uses it.  see &lt;a href="http://microformats.org/wiki/datetime-design-pattern" rel="nofollow noopener" target="_blank" title="http://microformats.org/wiki/datetime-design-pattern"&gt;http://microformats.org/wik...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bf</dc:creator><pubDate>Thu, 14 Feb 2013 17:09:18 -0000</pubDate></item><item><title>Re: ISO8601 Dates in Ruby</title><link>http://devblog.avdi.org/2009/10/25/iso8601-dates-in-ruby/#comment-753711122</link><description>&lt;p&gt;Great post regarding iso8601. I was trying to load a Time object from a YAML config file and everything else I did just returned a string representation of the date. By using the iso8601 format, YAML correctly parses it back to a Time object. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kris L</dc:creator><pubDate>Wed, 02 Jan 2013 17:16:25 -0000</pubDate></item><item><title>Re: ISO8601 Dates in Ruby</title><link>http://devblog.avdi.org/2009/10/25/iso8601-dates-in-ruby/#comment-369891983</link><description>&lt;p&gt;What is about time periods ? How can I get format like this PT1H30M ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Тотото Сё</dc:creator><pubDate>Tue, 22 Nov 2011 00:51:31 -0000</pubDate></item><item><title>Re: ISO8601 Dates in Ruby</title><link>http://devblog.avdi.org/2009/10/25/iso8601-dates-in-ruby/#comment-21045271</link><description>&lt;p&gt;Thanks, I've updated the post!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Avdi Grimm</dc:creator><pubDate>Mon, 26 Oct 2009 12:57:44 -0000</pubDate></item><item><title>Re: ISO8601 Dates in Ruby</title><link>http://devblog.avdi.org/2009/10/25/iso8601-dates-in-ruby/#comment-21040563</link><description>&lt;p&gt;require 'rss' works because it is requiring 'time'.&lt;br&gt;If you just want the iso8601 support, you can go with: require 'time'&lt;/p&gt;&lt;p&gt;Also, Time#iso8601 takes a handy optional argument for the number of fractional digits at the end.&lt;br&gt;I've had to use this to interact with brittle external services, for example.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilson Bilkovich</dc:creator><pubDate>Mon, 26 Oct 2009 11:38:07 -0000</pubDate></item></channel></rss>