instance method
to_datetime
Ruby on Rails 4.0.13
Since v2.2.3Signature
to_datetime()
No documentation comment.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 325
def to_datetime
utc.to_datetime.new_offset(Rational(utc_offset, 86_400))
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 325
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone