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

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

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

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

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

Returns a hash of this CountryTimezone.

Returns internal object state as a programmer-readable string.

The latitude of this timezone in degrees as a Rational.

The longitude of this timezone in degrees as a Rational.

The Timezone (actually a TimezoneProxy for performance reasons).

[Validate]