DISQUS

Virtuous Code: ISO8601 Dates in Ruby

  • Wilson Bilkovich · 2 months ago
    require 'rss' works because it is requiring 'time'.
    If you just want the iso8601 support, you can go with: require 'time'

    Also, Time#iso8601 takes a handy optional argument for the number of fractional digits at the end.
    I've had to use this to interact with brittle external services, for example.
  • avdi · 2 months ago
    Thanks, I've updated the post!