Class: TZInfo::CountryTimezone

Class | TZInfo::CountryTimezone
In: | lib/tzinfo/country_timezone.rb
Parent: | Object

A Timezone within a Country. This contains extra information about the Timezone that is specific to the Country (a Timezone could be used by multiple countries).

### Methods

== description_or_friendly_identifier eql? hash inspect latitude longitude timezone

### Attributes

description | [R] | A description of this timezone in relation to the country, e.g. "Eastern Time". This is usually nil for countries having only a single Timezone.
identifier | [R] | The zone identifier.

### Public Instance methods

==(ct)

Returns true if and only if the given CountryTimezone is equal to the current CountryTimezone (has the same identifer, latitude, longitude and description).

description_or_friendly_identifier()

if description is not nil, this method returns description; otherwise it returns timezone.friendly_identifier(true).

eql?(ct)

Returns true if and only if the given CountryTimezone is equal to the current CountryTimezone (has the same identifer, latitude, longitude and description).

hash()

Returns a hash of this CountryTimezone.

inspect()

Returns internal object state as a programmer-readable string.

latitude()

The latitude of this timezone in degrees as a Rational.

longitude()

The longitude of this timezone in degrees as a Rational.

timezone()

The Timezone (actually a TimezoneProxy for performance reasons).

[Validate]