Module: TZInfo

Defined in:
lib/tzinfo.rb,
lib/tzinfo/country.rb,
lib/tzinfo/format1.rb,
lib/tzinfo/format2.rb,
lib/tzinfo/version.rb,
lib/tzinfo/timezone.rb,
lib/tzinfo/timestamp.rb,
lib/tzinfo/data_source.rb,
lib/tzinfo/untaint_ext.rb,
lib/tzinfo/with_offset.rb,
lib/tzinfo/annual_rules.rb,
lib/tzinfo/data_sources.rb,
lib/tzinfo/data_timezone.rb,
lib/tzinfo/info_timezone.rb,
lib/tzinfo/string_deduper.rb,
lib/tzinfo/timezone_proxy.rb,
lib/tzinfo/linked_timezone.rb,
lib/tzinfo/timezone_offset.rb,
lib/tzinfo/timezone_period.rb,
lib/tzinfo/transition_rule.rb,
lib/tzinfo/country_timezone.rb,
lib/tzinfo/time_with_offset.rb,
lib/tzinfo/timezone_transition.rb,
lib/tzinfo/datetime_with_offset.rb,
lib/tzinfo/timestamp_with_offset.rb,
lib/tzinfo/offset_timezone_period.rb,
lib/tzinfo/format1/country_definer.rb,
lib/tzinfo/format2/country_definer.rb,
lib/tzinfo/format1/timezone_definer.rb,
lib/tzinfo/format2/timezone_definer.rb,
lib/tzinfo/data_sources/country_info.rb,
lib/tzinfo/data_sources/timezone_info.rb,
lib/tzinfo/format1/timezone_definition.rb,
lib/tzinfo/format2/timezone_definition.rb,
lib/tzinfo/transitions_timezone_period.rb,
lib/tzinfo/data_sources/zoneinfo_reader.rb,
lib/tzinfo/data_sources/ruby_data_source.rb,
lib/tzinfo/format2/country_index_definer.rb,
lib/tzinfo/format2/timezone_index_definer.rb,
lib/tzinfo/data_sources/data_timezone_info.rb,
lib/tzinfo/format1/country_index_definition.rb,
lib/tzinfo/format2/country_index_definition.rb,
lib/tzinfo/data_sources/linked_timezone_info.rb,
lib/tzinfo/data_sources/zoneinfo_data_source.rb,
lib/tzinfo/format1/timezone_index_definition.rb,
lib/tzinfo/format2/timezone_index_definition.rb,
lib/tzinfo/data_sources/posix_time_zone_parser.rb,
lib/tzinfo/data_sources/transitions_data_timezone_info.rb,
lib/tzinfo/data_sources/constant_offset_data_timezone_info.rb

Overview

The top level module for TZInfo.

Defined Under Namespace

Modules: DataSources, WithOffset Classes: AmbiguousTime, Country, CountryTimezone, DataSource, DataSourceNotFound, DataTimezone, DateTimeWithOffset, InfoTimezone, InvalidCountryCode, InvalidDataSource, InvalidTimezoneIdentifier, LinkedTimezone, OffsetTimezonePeriod, PeriodNotFound, TimeWithOffset, Timestamp, TimestampWithOffset, Timezone, TimezoneOffset, TimezonePeriod, TimezoneProxy, TimezoneTransition, TransitionsTimezonePeriod, UnknownTimezone

Constant Summary collapse

VERSION =

The TZInfo version number.

'2.0.5'

Class Method Summary collapse

Class Method Details

.eager_load!Object

Instructs the current DataSource to load all timezone and country data into memory (initializing the DataSource first if not previously accessed or set).

This may be desirable in production environments to improve copy-on-write performance and to avoid flushing the constant cache every time a new timezone or country is loaded from TZInfo::DataSources::RubyDataSource.


14
15
16
# File 'lib/tzinfo.rb', line 14

def eager_load!
  DataSource.get.eager_load!
end