Ruby: Formatting time values as RFC3339

November 1, 2008 by Michael

Times in RSS Feeds and the like are formatted as RFC3339 most of the time. You can save yourself from strftime by using

Time.now.xmlschema

No comments yet

One Trackback/Pingback
  1. RFC3339 revisited | info.michael-simons.eu on November 13, 2008 at 11:24 AM

    […] just for ruby but also the corresponding formats […]

Post a Comment

Your email is never published nor shared. Required fields are marked *