Method: ActiveSupport::TimeWithZone#localtime
- Defined in:
- lib/active_support/time_with_zone.rb
#localtime(utc_offset = nil) ⇒ Object Also known as: getlocal
Returns a Time
instance of the simultaneous time in the system timezone.
93 94 95 |
# File 'lib/active_support/time_with_zone.rb', line 93 def localtime(utc_offset = nil) utc.getlocal(utc_offset) end |