Method: ActiveSupport::TimeZone#utc_offset
- Defined in:
- activesupport/lib/active_support/values/time_zone.rb
#utc_offset ⇒ Object
Returns the offset of this time zone from UTC in seconds.
308 309 310 |
# File 'activesupport/lib/active_support/values/time_zone.rb', line 308 def utc_offset @utc_offset || tzinfo&.current_period&.base_utc_offset end |