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.



42
43
44
# File 'lib/ext/ext.rb', line 42

def iso8601
  ::Time.utc(year, month, day, 0, 0, 0, 0).iso8601
end