method
to_time
v4.2.7 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
to_time()public
Return an instance of Time in the system timezone.
1Note
Actually one can see from the source that it just calls utc
From utc:
Returns a Time or DateTime instance that represents the time in UTC.
Seems to have changed in 3.1.0