method
to_time
v3.2.8 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
to_time()public
A TimeWithZone acts like a Time, so just return self.
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