Method: ActiveSupport::TimeWithZone#utc_offset
- Defined in:
- lib/active_support/time_with_zone.rb
#utc_offset ⇒ Object Also known as: gmt_offset, gmtoff
Returns the offset from current time to UTC time in seconds.
121 122 123 |
# File 'lib/active_support/time_with_zone.rb', line 121 def utc_offset period.observed_utc_offset end |