= private = protected
w3cdtf()
This method converts a Time object to a String. The String contains the time in W3CDTF date/time format.
The W3CDTF format is defined here: http://www.w3.org/TR/NOTE-datetime
Time.now.w3cdtf # => "2013-08-26T14:12:10.817124-07:00"
# File lib/rss/rss.rb, line 53 def w3cdtf if usec.zero? fraction_digits = 0 else fraction_digits = strftime('%6N').index(/0*\z/) end xmlschema(fraction_digits) end