class
TimeZone
v1.0.0 -
Show latest stable
- Superclass: Object
A value object representing a time zone. A time zone is simply a named offset (in seconds) from GMT. Note that two time zone objects are only equivalent if they have both the same offset, and the same name.
A TimeZone instance may be used to convert a Time value to the corresponding time zone.
The class also includes #all, which returns a list of all TimeZone objects.
Included modules
- Comparable
Constants
US_ZONES = /US|Arizona|Indiana|Hawaii|Alaska/
Attributes
| [R] | name |
| [R] | utc_offset |
Files
- activesupport/lib/active_support/values/time_zone.rb