Class: Date

Inherits:
Object show all
Defined in:
lib/ext/ext.rb

Instance Method Summary collapse

Instance Method Details

#iso8601Object

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