Method: ActiveSupport::TimeWithZone#to_s

Defined in:
activesupport/lib/active_support/time_with_zone.rb

#to_sObject

Returns a string of the object’s date and time.



200
201
202
# File 'activesupport/lib/active_support/time_with_zone.rb', line 200

def to_s
  "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" # mimicking Ruby Time#to_s format
end