Class: DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/parse/model/date.rb

Overview

Adds extensions to DateTime class to be compatible with Parse::Date.

Direct Known Subclasses

Parse::Date

Instance Method Summary collapse

Instance Method Details

#parse_dateParse::Date

Returns Converts object to Parse::Date.

Returns:


60
61
62
# File 'lib/parse/model/date.rb', line 60

def parse_date
  Parse::Date.parse iso8601(3)
end