Class: Date
Instance Method Summary collapse
-
#iso8601 ⇒ Object
Return the date as a String formatted according to ISO 8601.
Instance Method Details
#iso8601 ⇒ Object
Return the date as a String formatted according to ISO 8601.
59 60 61 |
# File 'lib/ext/ext.rb', line 59 def iso8601 ::Time.utc(year, month, day, 0, 0, 0, 0).iso8601 end |