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.
48 49 50 |
# File 'lib/ext/ext.rb', line 48 def iso8601 ::Time.utc(year, month, day, 0, 0, 0, 0).iso8601 end |