instance method
to_s
Ruby on Rails edge
Signature
to_s()
Returns a string of the object’s date and time.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 235
def to_s
if @is_utc
transfer_time_values_to_utc_constructor(utc).to_s
else
transfer_time_values_to_utc_constructor(utc).getlocal(utc_offset).to_s
end
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 235
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone