Class: TZInfo::InfoTimezone Abstract
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Timezone
|
|
|
Instance Chain:
self,
Timezone,
Comparable
|
|
| Inherits: |
TZInfo::Timezone
|
| Defined in: | lib/tzinfo/info_timezone.rb |
Overview
A Timezone based on a DataSources::TimezoneInfo.
Class Attribute Summary
Timezone - Inherited
| .default_dst | Returns the default value of the optional |
| .default_dst= | Sets the default value of the optional |
Class Method Summary
-
.new(info) ⇒ InfoTimezone
constructor
Initializes a new
InfoTimezone.
Timezone - Inherited
| ._load | Loads a |
| .all | Returns an |
| .all_country_zone_identifiers | Returns an |
| .all_country_zones | Returns an |
| .all_data_zone_identifiers | time zones that are defined by offsets and transitions. |
| .all_data_zones | Returns an |
| .all_identifiers, | |
| .all_linked_zone_identifiers | time zones that are defined as links to / aliases for other time zones. |
| .all_linked_zones | Returns an |
| .get | Returns a time zone by its IANA Time Zone Database identifier (e.g. |
| .get_proxy | Returns a proxy for the time zone with the given identifier. |
| .data_source, .get_proxies | |
Instance Method Summary
Timezone - Inherited
| #<=> | Compares this |
| #=~ | Matches |
| #_dump | Returns a serialized representation of this |
| #abbr | Alias for Timezone#abbreviation. |
| #abbreviation, | |
| #base_utc_offset | Returns the base offset from UTC in seconds at the given time. |
| #canonical_identifier | Returns the canonical identifier of this time zone. |
| #canonical_zone | |
| #current_period, | |
| #current_period_and_time | Alias for Timezone#current_time_and_period. |
| #current_time_and_period | Returns the current local time and |
| #dst?, #eql?, | |
| #friendly_identifier | Returns #identifier, modified to make it more readable. |
| #hash, #identifier, #inspect, | |
| #local_datetime | Creates a |
| #local_time | Creates a |
| #local_timestamp | Creates a |
| #local_to_utc | Converts a local time for the time zone to UTC. |
| #name, #now, | |
| #observed_utc_offset | Returns the observed offset from UTC in seconds at the given time. |
| #offsets_up_to | Returns the unique offsets used by the time zone up to a given time ( |
| #period_for | Returns the |
| #period_for_local | Returns the |
| #period_for_utc | Returns the |
| #periods_for_local | Returns the set of |
| #strftime | Converts a time to local time for the time zone and returns a |
| #to_local | Converts a time to the local time for the time zone. |
| #to_s, | |
| #transitions_up_to | Returns an |
| #utc_offset | Alias for Timezone#observed_utc_offset. |
| #utc_to_local | Converts a time in UTC to the local time for the time zone. |
| #raise_unknown_timezone | Raises an |
Constructor Details
.new(info) ⇒ InfoTimezone
Initializes a new InfoTimezone.
InfoTimezone instances should not normally be created directly. Use
the Timezone.get method to obtain Timezone instances.
Instance Method Details
#identifier ⇒ String
# File 'lib/tzinfo/info_timezone.rb', line 23
def identifier @info.identifier end
#info ⇒ DataSources::TimezoneInfo (protected)
# File 'lib/tzinfo/info_timezone.rb', line 31
def info @info end