instance method
to_datetime
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
to_datetime()
No documentation comment.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 295
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 295
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone