Class: ActiveSupport::TimeWithZone

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

Overview

Adds extensions to ActiveSupport::TimeWithZone class to be compatible with Parse::Date.

Instance Method Summary collapse

Instance Method Details

#parse_dateParse::Date

Returns Converts object to Parse::Date.

Returns:


70
71
72
# File 'lib/parse/model/date.rb', line 70

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