repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/fixtures/smoke/metadata.rb | test/fixtures/smoke/metadata.rb | name "smoke"
license "Apache 2.0"
description "This cookbook is used with test-kitchen to test the parent, td-agent cookbok"
version "1.0.0"
depends 'td-agent'
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/fixtures/smoke/recipes/default.rb | test/fixtures/smoke/recipes/default.rb | #
# Cookbok Name:: smoke
# Recipe:: default
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
case node["platform_family"]
when "rhel"
# workaround to let `/etc/init.d/functions` to NOT use systemctl(8)
file "/etc/sysconfig/td-agent" do
owner "root"
group "root"
mode "0644"
content <<-EOS
SYSTEMCTL_SKIP_REDIRECT=1
EOS
only_if {
%r|/docker/| =~ (::File.read("/proc/1/cgroup") rescue "") and ::File.exist?("/bin/systemctl")
}
end.run_action(:create)
end
unless /^1\./ =~ node["td_agent"]["version"]
node.force_default['td_agent']['includes'] = true
end
include_recipe 'td-agent::default'
td_agent_plugin 'gelf' do
url 'https://raw.githubusercontent.com/emsearcy/fluent-plugin-gelf/master/lib/fluent/plugin/out_gelf.rb'
end
td_agent_gem 'fluent-plugin-gelf-hs'
td_agent_source 'test_in_tail' do
type 'tail'
tag 'syslog'
parameters(
format: 'syslog',
path: '/var/log/syslog',
pos_file: '/tmp/.syslog.pos',
)
end
td_agent_source 'test_in_tail_nginx' do
type 'tail'
tag 'webserver.nginx'
if TdAgent::Helpers.apply_params_kludge?
params(
format: 'apache2',
time_format: '%d/%b/%Y:%H:%M:%S',
types: { code: 'integer', size: 'integer' },
path: '/tmp/access.log',
pos_file: '/tmp/.access.log.pos',
# exclude_path: ["/tmp/access.log.*.gz", "/tmp/access.log.*.bz2"],
)
else
parameters(
format: 'apache2',
time_format: '%d/%b/%Y:%H:%M:%S',
types: { code: 'integer', size: 'integer' },
path: '/tmp/access.log',
pos_file: '/tmp/.access.log.pos',
# exclude_path: ["/tmp/access.log.*.gz", "/tmp/access.log.*.bz2"],
)
end
end
td_agent_match 'test_gelf_match' do
type 'copy'
tag 'webserver.*'
if TdAgent::Helpers.apply_params_kludge?
params(
store: [
{type: 'gelf', host: '127.0.0.1', port: 12201, flush_interval: '5s'},
{type: 'stdout'},
]
)
else
parameters(
store: [
{type: 'gelf', host: '127.0.0.1', port: 12201, flush_interval: '5s'},
{type: 'stdout'},
]
)
end
end
td_agent_filter 'test_filter' do
type 'record_transformer'
tag 'webserver.*'
if TdAgent::Helpers.apply_params_kludge?
params(
record: [
{host_param: %q|"#{Socket.gethostname}"|},
]
)
else
parameters(
record: [
{host_param: %q|"#{Socket.gethostname}"|},
]
)
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/recipes/default.rb | recipes/default.rb | #
# Cookbook Name:: td-agent
# Recipe:: default
#
# Copyright 2011, Treasure Data, Inc.
#
include_recipe 'td-agent::install'
include_recipe 'td-agent::configure'
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/recipes/configure.rb | recipes/configure.rb | #
# Cookbook Name:: td-agent
# Recipe:: configure
#
#
Chef::Recipe.send(:include, TdAgent::Version)
Chef::Provider.send(:include, TdAgent::Version)
reload_action = (reload_available?) ? :reload : :restart
major_version = major
template "/etc/td-agent/td-agent.conf" do
owner node["td_agent"]["user"]
group node["td_agent"]["group"]
mode "0644"
cookbook node['td_agent']['template_cookbook']
source "td-agent.conf.erb"
variables(
:major_version => major_version
)
notifies reload_action, "service[td-agent]", :delayed
end
node["td_agent"]["plugins"].each do |plugin|
if plugin.is_a?(Hash)
plugin_name, plugin_attributes = plugin.first
td_agent_gem plugin_name do
plugin true
%w{action version source options gem_binary}.each do |attr|
send(attr, plugin_attributes[attr]) if plugin_attributes[attr]
end
notifies :restart, "service[td-agent]", :delayed
end
elsif plugin.is_a?(String)
td_agent_gem plugin do
plugin true
notifies :restart, "service[td-agent]", :delayed
end
end
end
service "td-agent" do
supports :restart => true, :reload => (reload_action == :reload), :status => true
restart_command "/etc/init.d/td-agent restart || /etc/init.d/td-agent start"
action [ :enable, :start ]
end
##### /var/log/td-agent
##### /var/log/td-agent/buffer
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/recipes/install.rb | recipes/install.rb | #
# Cookbook Name:: td-agent
# Recipe:: install
#
#
Chef::Recipe.send(:include, TdAgent::Version)
Chef::Provider.send(:include, TdAgent::Version)
group node["td_agent"]["group"] do
group_name node["td_agent"]["group"]
gid node["td_agent"]["gid"] if node["td_agent"]["gid"]
system true
action [:create]
end
user node["td_agent"]["user"] do
comment 'td-agent'
uid node["td_agent"]["uid"] if node["td_agent"]["uid"]
system true
group node["td_agent"]["group"]
home '/var/run/td-agent'
shell '/bin/false'
password nil
manage_home true
action [:create, :manage]
end
directory '/var/run/td-agent/' do
owner node["td_agent"]["user"]
group node["td_agent"]["group"]
mode '0755'
action :create
end
directory '/etc/td-agent/' do
owner node["td_agent"]["user"]
group node["td_agent"]["group"]
mode '0755'
action :create
end
case node['platform_family']
when "debian"
dist = node['lsb']['codename']
platform = node["platform"]
source =
if major.nil? || major == '1'
# version 1.x or no version
if dist == 'precise'
'http://packages.treasuredata.com/precise/'
else
'http://packages.treasuredata.com/debian/'
end
else
# version 2.x or later
"http://packages.treasuredata.com/#{major}/#{platform}/#{dist}/"
end
apt_repository "treasure-data" do
uri source
arch node["td_agent"]["apt_arch"]
distribution dist
components ["contrib"]
key "https://packages.treasuredata.com/GPG-KEY-td-agent"
action :add
not_if { node['td_agent']['skip_repository'] }
end
when "fedora"
platform = node["platform"]
source =
if major.nil? || major == '1'
"http://packages.treasuredata.com/redhat/$basearch"
else
# version 2.x or later
"http://packages.treasuredata.com/#{major}/redhat/7/$basearch"
end
yum_repository "treasure-data" do
description "TreasureData"
url source
gpgkey "https://packages.treasuredata.com/GPG-KEY-td-agent"
action :add
not_if { node['td_agent']['skip_repository'] }
end
when "rhel", "amazon"
# platform_family of Amazon Linux is judged as amazon in new version of ohai: https://github.com/chef/ohai/pull/971
platform = node["platform"]
source =
case major
when nil?,'1'
"http://packages.treasuredata.com/redhat/$basearch"
when '2'
# version 2.x or later
if platform == "amazon"
if node["td_agent"]["yum_amazon_releasever"] != "$releasever"
Chef::Log.warn("Treasure Data doesn't guarantee td-agent works on older Amazon Linux releases. td-agent could be used on such environment at your own risk.")
end
"http://packages.treasuredata.com/#{major}/redhat/#{node["td_agent"]["yum_amazon_releasever"]}/$basearch"
else
"http://packages.treasuredata.com/#{major}/redhat/$releasever/$basearch"
end
when '3'
if platform == "amazon"
amazon_version = node['kernel']['release'].match(/\.amzn([[:digit:]]+)\./)[1]
"https://packages.treasuredata.com/#{major}/amazon/#{amazon_version}/#{node["td_agent"]["yum_amazon_releasever"]}/$basearch"
else
"http://packages.treasuredata.com/#{major}/redhat/$releasever/$basearch"
end
end
yum_repository "treasure-data" do
description "TreasureData"
url source
gpgkey "https://packages.treasuredata.com/GPG-KEY-td-agent"
action :add
not_if { node['td_agent']['skip_repository'] }
end
end
directory "/etc/td-agent/conf.d" do
owner node["td_agent"]["user"]
group node["td_agent"]["group"]
mode "0755"
only_if { node["td_agent"]["includes"] }
end
package "td-agent" do
retries 3
retry_delay 10
if node["td_agent"]["pinning_version"]
action :install
version node["td_agent"]["version"]
else
action :upgrade
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/providers/source.rb | providers/source.rb | #
# Cookbok Name:: td-agent
# Provider:: source
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
include ::TdAgent::Version
action :create do
fail 'You should set the node[:td_agent][:includes] attribute to true to use this resource.' unless node['td_agent']['includes']
t = template "/etc/td-agent/conf.d/#{new_resource.source_name}.conf" do
source 'source.conf.erb'
owner 'root'
group 'root'
mode '0644'
# Workaround for backward compatibility for Chef pre-13 (#99)
if TdAgent::Helpers.apply_params_kludge?
::Chef::Log.warn("chef-td-agent: property `params` has been renamed to `parameters` since `params` is reserved in Chef 13+. The `params` will not be supported anymore with future release of chef-td-agent")
parameters = Hash(new_resource.params).merge(Hash(new_resource.parameters))
else
parameters = new_resource.parameters
end
variables(type: new_resource.type,
parameters: TdAgent::Helpers.params_to_text(parameters),
tag: new_resource.tag)
cookbook new_resource.template_source
notifies reload_action, 'service[td-agent]'
end
new_resource.updated_by_last_action(true) if t.updated_by_last_action?
end
action :delete do
f = file "/etc/td-agent/conf.d/#{new_resource.source_name}.conf" do
action :delete
only_if { ::File.exist?("/etc/td-agent/conf.d/#{new_resource.source_name}.conf") }
notifies reload_action, 'service[td-agent]'
end
new_resource.updated_by_last_action(true) if f.updated_by_last_action?
end
def reload_action
if reload_available?
:reload
else
:restart
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/providers/filter.rb | providers/filter.rb | #
# Cookbok Name:: td-agent
# Provider:: filter
#
# Author:: Anthony Scalisi <scalisi.a@gmail.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
include ::TdAgent::Version
action :create do
fail 'You should set the node[:td_agent][:includes] attribute to true to use this resource.' unless node['td_agent']['includes']
t = template "/etc/td-agent/conf.d/#{new_resource.filter_name}.conf" do
source 'filter.conf.erb'
owner 'root'
group 'root'
mode '0644'
# Workaround for backward compatibility for Chef pre-13 (#99)
if TdAgent::Helpers.apply_params_kludge?
::Chef::Log.warn("chef-td-agent: property `params` has been renamed to `parameters` since `params` is reserved in Chef 13+. The `params` will not be supported anymore with future release of chef-td-agent")
parameters = Hash(new_resource.params).merge(Hash(new_resource.parameters))
else
parameters = new_resource.parameters
end
variables(type: new_resource.type,
parameters: TdAgent::Helpers.params_to_text(parameters),
tag: new_resource.tag)
cookbook 'td-agent'
notifies reload_action, 'service[td-agent]'
end
new_resource.updated_by_last_action(true) if t.updated_by_last_action?
end
action :delete do
f = file "/etc/td-agent/conf.d/#{new_resource.filter_name}.conf" do
action :delete
only_if { ::File.exist?("/etc/td-agent/conf.d/#{new_resource.filter_name}.conf") }
notifies reload_action, 'service[td-agent]'
end
new_resource.updated_by_last_action(true) if f.updated_by_last_action?
end
def reload_action
if reload_available?
:reload
else
:restart
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/providers/plugin.rb | providers/plugin.rb | #
# Cookbok Name:: td-agent
# Provider:: plugin
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
action :create do
d = directory '/etc/td-agent/plugin' do
owner "root"
group "root"
mode "0755"
action :create
end
new_resource.updated_by_last_action(true) if d.updated_by_last_action?
r = remote_file "/etc/td-agent/plugin/#{new_resource.plugin_name}.rb" do
action :create_if_missing
owner 'root'
group 'root'
mode '0644'
source new_resource.url
notifies :restart, "service[td-agent]"
end
new_resource.updated_by_last_action(true) if r.updated_by_last_action?
end
action :delete do
f = file "/etc/td-agent/plugin/#{new_resource.plugin_name}.rb" do
action :delete
only_if { ::File.exist?("/etc/td-agent/plugin/#{new_resource.plugin_name}.rb") }
notifies :restart, "service[td-agent]"
end
new_resource.updated_by_last_action(true) if f.updated_by_last_action?
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/providers/match.rb | providers/match.rb | #
# Cookbok Name:: td-agent
# Provider:: match
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
include ::TdAgent::Version
action :create do
fail 'You should set the node[:td_agent][:includes] attribute to true to use this resource.' unless node['td_agent']['includes']
t = template "/etc/td-agent/conf.d/#{new_resource.match_name}.conf" do
source 'match.conf.erb'
owner 'root'
group 'root'
mode '0644'
# Workaround for backward compatibility for Chef pre-13 (#99)
if TdAgent::Helpers.apply_params_kludge?
::Chef::Log.warn("chef-td-agent: property `params` has been renamed to `parameters` since `params` is reserved in Chef 13+. The `params` will not be supported anymore with future release of chef-td-agent")
parameters = Hash(new_resource.params).merge(Hash(new_resource.parameters))
else
parameters = new_resource.parameters
end
variables(type: new_resource.type,
parameters: TdAgent::Helpers.params_to_text(parameters),
tag: new_resource.tag)
cookbook 'td-agent'
notifies reload_action, 'service[td-agent]'
end
new_resource.updated_by_last_action(true) if t.updated_by_last_action?
end
action :delete do
f = file "/etc/td-agent/conf.d/#{new_resource.match_name}.conf" do
action :delete
only_if { ::File.exist?("/etc/td-agent/conf.d/#{new_resource.match_name}.conf") }
notifies reload_action, 'service[td-agent]'
end
new_resource.updated_by_last_action(true) if f.updated_by_last_action?
end
def reload_action
if reload_available?
:reload
else
:restart
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/attributes/default.rb | attributes/default.rb | default["td_agent"]["api_key"] = ''
default["td_agent"]["plugins"] = []
default["td_agent"]["uid"] = nil
default["td_agent"]["gid"] = nil
default["td_agent"]["user"] = 'td-agent'
default["td_agent"]["group"] = 'td-agent'
default["td_agent"]["includes"] = false
default["td_agent"]["default_config"] = true
default["td_agent"]["template_cookbook"] = 'td-agent'
default["td_agent"]["in_http"]["enable_api"] = true
default["td_agent"]["version"] = "2.2.0"
default["td_agent"]["pinning_version"] = false
default["td_agent"]["apt_arch"] = 'amd64'
default["td_agent"]["in_forward"] = {
port: 24224,
bind: '0.0.0.0'
}
default["td_agent"]["in_http"] = {
port: 8888,
bind: '0.0.0.0'
}
default["td_agent"]["yum_amazon_releasever"] = "$releasever"
default['td_agent']['skip_repository'] = false
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/spec_helper.rb | spec/spec_helper.rb | require 'chefspec'
require 'chefspec/berkshelf'
RSpec.configure do |config|
config.file_cache_path = '/var/chef/cache'
config.log_level = :warn
config.color = true
config.formatter = :documentation
end
shared_context 'converged recipe' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(platform) do |node|
node_attributes.each do |k, v|
# Normal is a high enough precedence to override
# the cookbook defaults
node.normal[k] = v
end
end
runner.converge(described_recipe)
end
let(:platform) do
{}
end
let(:node_attributes) do
{}
end
let(:node) do
chef_run.node
end
def attribute(name)
node[described_cookbook][name]
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/unit/recipes/install_spec.rb | spec/unit/recipes/install_spec.rb | require 'spec_helper'
describe 'td-agent::install' do
include_context 'converged recipe'
let(:platform) do
{ platform: 'ubuntu', version: '14.04' }
end
let(:node_attributes) do
{
'td_agent' => {
'group' => 'td-agent',
'gid' => 3000,
'pinning_version' => true,
'skip_repository' => true,
'user' => 'td-agent',
'uid' => 2000,
'version' => '3.1.0'
}
}
end
it 'converges without error' do
expect { chef_run }.not_to raise_error
end
it 'creates the td-agent group' do
expect(chef_run).to create_group('td-agent')
.with(gid: 3000)
end
it 'creates the td-agent user' do
expect(chef_run).to create_user('td-agent')
.with(uid: 2000)
end
it 'creates td-agent configuration directory' do
expect(chef_run).to create_directory('/etc/td-agent/')
.with(owner: 'td-agent', group: 'td-agent')
end
it 'creates td-agent runtime directory' do
expect(chef_run).to create_directory('/var/run/td-agent/')
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/unit/recipes/default_spec.rb | spec/unit/recipes/default_spec.rb | require 'spec_helper'
describe 'td-agent::default' do
include_context 'converged recipe'
let(:platform) do
{ platform: 'ubuntu', version: '14.04' }
end
it 'converges without error' do
expect { chef_run }.not_to raise_error
end
it 'includes configure and install recipes' do
expect(chef_run).to include_recipe('td-agent::install')
expect(chef_run).to include_recipe('td-agent::configure')
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/unit/recipes/configure_spec.rb | spec/unit/recipes/configure_spec.rb | require 'spec_helper'
describe 'td-agent::configure' do
include_context 'converged recipe'
let(:platform) do
{ platform: 'ubuntu', version: '14.04' }
end
it 'converges without error' do
expect { chef_run }.not_to raise_error
end
it 'creates td-agent.conf' do
expect(chef_run).to create_template('/etc/td-agent/td-agent.conf')
end
it 'starts and enables the td-agent service' do
expect(chef_run).to start_service('td-agent')
expect(chef_run).to enable_service('td-agent')
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/unit/resources/td_agent_source_spec.rb | spec/unit/resources/td_agent_source_spec.rb | require 'spec_helper'
describe 'td-agent-spec::source' do
include_context 'converged recipe'
let(:platform) do
{
platform: 'ubuntu',
version: '14.04',
step_into: %w(td_agent_source)
}
end
let(:node_attributes) do
{
'td_agent' => {
'group' => 'td-agent',
'gid' => 3000,
'includes' => true,
'pinning_version' => true,
'skip_repository' => true,
'user' => 'td-agent',
'uid' => 2000,
'version' => '3.1.0'
}
}
end
it 'converges without error' do
expect { chef_run }.not_to raise_error
end
it 'creates unit test input' do
expect(chef_run).to create_td_agent_source('01_input')
end
it 'creates the input config file' do
expect(chef_run).to create_template('/etc/td-agent/conf.d/01_input.conf')
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/unit/resources/td_agent_match_spec.rb | spec/unit/resources/td_agent_match_spec.rb | require 'spec_helper'
describe 'td-agent-spec::match' do
include_context 'converged recipe'
let(:platform) do
{
platform: 'ubuntu',
version: '14.04',
step_into: %w(td_agent_match)
}
end
let(:node_attributes) do
{
'td_agent' => {
'group' => 'td-agent',
'gid' => 3000,
'includes' => true,
'pinning_version' => true,
'skip_repository' => true,
'user' => 'td-agent',
'uid' => 2000,
'version' => '3.1.0'
}
}
end
it 'converges without error' do
expect { chef_run }.not_to raise_error
end
it 'creates unit test output' do
expect(chef_run).to create_td_agent_match('01_out_file')
end
it 'creates the output config file' do
expect(chef_run).to create_template('/etc/td-agent/conf.d/01_out_file.conf')
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/spec/unit/resources/td_agent_filter_spec.rb | spec/unit/resources/td_agent_filter_spec.rb | require 'spec_helper'
describe 'td-agent-spec::filter' do
include_context 'converged recipe'
let(:platform) do
{
platform: 'ubuntu',
version: '14.04',
step_into: %w(td_agent_filter)
}
end
let(:node_attributes) do
{
'td_agent' => {
'group' => 'td-agent',
'gid' => 3000,
'includes' => true,
'pinning_version' => true,
'skip_repository' => true,
'user' => 'td-agent',
'uid' => 2000,
'version' => '3.1.0'
}
}
end
it 'converges without error' do
expect { chef_run }.not_to raise_error
end
it 'creates unit test filter' do
expect(chef_run).to create_td_agent_filter('01_filter')
end
it 'creates the filter config file' do
expect(chef_run).to create_template('/etc/td-agent/conf.d/01_filter.conf')
.with(variables: {
type: 'record_transformer',
parameters: " <record>\n hostname \"\#{Socket.gethostname}\"\n tag ${tag}\n </record>\n",
tag: 'test'
})
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/libraries/version.rb | libraries/version.rb | require "rubygems"
module TdAgent
module Version
def major
unless @major
version = node["td_agent"]["version"]
@major = version.nil? ? nil : version.to_s.split('.').first
end
@major
end
def reload_available?
case node["platform_family"]
when "debian"
# td-agent's init script for debian starts supporting reload starting from 2.1.4
if node["td_agent"]["version"]
::Gem::Version.new("2.1.4") <= ::Gem::Version.new(node["td_agent"]["version"].to_s)
else
false
end
when "rhel"
# td-agent's init script for redhat is supporting reload
true
else
false
end
end
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/libraries/matchers.rb | libraries/matchers.rb | if defined?(ChefSpec)
def install_td_agent_gem(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_gem, :install, resource_name)
end
def upgrade_td_agent_gem(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_gem, :upgrade, resource_name)
end
def remove_td_agent_gem(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_gem, :remove, resource_name)
end
def purge_td_agent_gem(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_gem, :purge, resource_name)
end
def create_td_agent_source(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_source, :create, resource_name)
end
def delete_td_agent_source(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_source, :delete, resource_name)
end
def create_td_agent_match(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_match, :create, resource_name)
end
def delete_td_agent_match(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_match, :delete, resource_name)
end
def create_td_agent_filter(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_filter, :create, resource_name)
end
def delete_td_agent_filter(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_filter, :delete, resource_name)
end
def create_td_agent_plugin(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_plugin, :create, resource_name)
end
def delete_td_agent_plugin(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:td_agent_plugin, :delete, resource_name)
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/libraries/helpers.rb | libraries/helpers.rb | module TdAgent
# A set of helper methods for the td-agent cookbook
module Helpers
def self.params_to_text(parameters)
body = ''
parameters.each do |param_key, param_value|
if param_value.is_a?(Hash)
body += "<#{param_key}>\n"
body += params_to_text(param_value)
body += "</#{param_key}>\n"
elsif param_value.is_a?(Array)
if param_value.all? { |array_value| array_value.is_a?(Hash) }
body += param_value.map { |array_value|
"<#{param_key}>\n#{params_to_text(array_value)}</#{param_key}>\n"
}.join
else
body += "#{param_key} [#{param_value.map { |array_value| array_value.to_s.dump }.join(", ")}]\n"
end
else
body += "#{param_key} #{param_value}\n"
end
end
indent = ' '
body.each_line.map { |line| "#{indent}#{line}" }.join
end
def self.apply_params_kludge?()
if ::Chef::Config[:treat_deprecation_warnings_as_errors]
# Skip setting up backward compatibility code for `params` (#112)
false
else
# Workaround for backward compatibility for Chef pre-13 (#99)
chef_major_version = ::Chef::VERSION.split(".").first.to_i
chef_major_version < 13
end
end
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/libraries/provider_td_rubygems.rb | libraries/provider_td_rubygems.rb | #
# Cookbook Name:: td-agent
# Provider:: Chef::Provider::Package::TdRubygems
#
# Author:: Michael H. Oshita <ijinpublic+github@gmail.com>
#
# Copyright 2013, Treasure Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
class Chef
class Provider
class Package
class TdRubygems < Chef::Provider::Package::Rubygems
class TdGemEnvironment < AlternateGemEnvironment
end
def initialize(new_resource, run_context = nil)
super
gem_binary_path = new_resource.gem_binary.empty? ? td_gem_binary_path : new_resource.gem_binary
@new_resource.gem_binary gem_binary_path
@new_resource.package_name td_plugin_name if @new_resource.plugin
@gem_env = TdGemEnvironment.new(gem_binary_path)
Chef::Log.debug("#{@new_resource} using gem '#{gem_binary_path}'")
end
def td_plugin_name
"fluent-plugin-#{@new_resource.package_name}"
end
def td_gem_binary_path
if major && major != '1'
# td-agent 2.x or later works with /opt
'/usr/sbin/td-agent-gem'
elsif node['platform_family'] == "rhel" && node["kernel"]["machine"] == "x86_64"
"/usr/lib64/fluent/ruby/bin/fluent-gem"
else
# older Ubuntu/Debian works with /usr/lib
"/usr/lib/fluent/ruby/bin/fluent-gem"
end
end
end
end
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/libraries/resource_td_agent_gem.rb | libraries/resource_td_agent_gem.rb | require 'chef/resource'
class Chef
class Resource
class TdAgentGem < Chef::Resource::GemPackage
def initialize(*args)
super
@action = :install
@provider = Chef::Provider::Package::TdRubygems
@plugin = false
@gem_binary = ""
end
def response_file(arg=nil)
set_or_return(:response_file, arg, :kind_of => String)
end
def plugin(arg=nil)
set_or_return(:plugin, arg, :kind_of => [ TrueClass, FalseClass ])
end
end
end
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/resources/source.rb | resources/source.rb | #
# Cookbok Name:: td-agent
# Resource:: source
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
actions :create, :delete
default_action :create
attribute :source_name, :kind_of => String, :name_attribute => true, :required => true
attribute :type, :kind_of => String, :required => true
attribute :tag, :kind_of => String
attribute :parameters, :kind_of => Hash, :default => {}
# Workaround for backward compatibility for Chef pre-13 (#99)
if TdAgent::Helpers.apply_params_kludge?
attribute :params, :default => {}
end
attribute :template_source, :kind_of => String, default: 'td-agent'
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/resources/filter.rb | resources/filter.rb | #
# Cookbok Name:: td-agent
# Resource:: filter
#
# Author:: Anthony Scalisi <scalisi.a@gmail.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
actions :create, :delete
default_action :create
attribute :filter_name, :kind_of => String, :name_attribute => true, :required => true
attribute :type, :kind_of => String, :required => true
attribute :tag, :kind_of => String, :required => true
attribute :parameters, :default => {}
# Workaround for backward compatibility for Chef pre-13 (#99)
if TdAgent::Helpers.apply_params_kludge?
attribute :params, :default => {}
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/resources/plugin.rb | resources/plugin.rb | #
# Cookbok Name:: td-agent
# Resource:: plugin
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
actions :create, :delete
default_action :create
attribute :plugin_name, :kind_of => String, :name_attribute => true, :required => true
attribute :url, :kind_of => String, :required => true
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
treasure-data/chef-td-agent | https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/resources/match.rb | resources/match.rb | #
# Cookbok Name:: td-agent
# Resource:: match
#
# Author:: Pavel Yudin <pyudin@parallels.com>
#
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
actions :create, :delete
default_action :create
attribute :match_name, :kind_of => String, :name_attribute => true, :required => true
attribute :type, :kind_of => String, :required => true
attribute :tag, :kind_of => String, :required => true
attribute :parameters, :default => {}
# Workaround for backward compatibility for Chef pre-13 (#99)
if TdAgent::Helpers.apply_params_kludge?
attribute :params, :default => {}
end
| ruby | Apache-2.0 | fdb75ce53550c43bdcc0878f849c6ee3c8886283 | 2026-01-04T17:51:25.360527Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/test/ts_all.rb | test/ts_all.rb | Dir[File.join(File.expand_path(File.dirname(__FILE__)), 'tc_*.rb')].each {|t| require t}
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/test/tc_version.rb | test/tc_version.rb | require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils')
require 'tzinfo/data/version'
class TCVersion < Minitest::Test
def test_version
assert(TZInfo::Data::VERSION =~ /\A\d+\.\d{4}\.\d+\z/)
end
def test_version_format
assert_equal(1, TZInfo::Data::Version::FORMAT)
end
def test_version_string
assert(TZInfo::Data::Version::STRING =~ /\A\d+\.\d{4}\.\d+\z/)
end
def test_version_tzdata
assert(TZInfo::Data::Version::TZDATA =~ /\A[0-9]{4}[a-z]\z/)
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/test/test_utils.rb | test/test_utils.rb | unless $:.include?(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
end
require 'minitest/autorun'
require 'tzinfo/data'
puts $:.inspect
require 'tzinfo'
TZInfo::DataSource.set(:ruby)
module Kernel
def assert_array_same_items(expected, actual, msg = nil)
full_message = message(msg, '') { diff(expected, actual) }
condition = (expected.size == actual.size) && (expected - actual == [])
assert(condition, full_message)
end
def assert_nothing_raised(msg = nil)
begin
yield
rescue => e
full_message = message(msg) { exception_details(e, 'Exception raised: ') }
assert(false, full_message)
end
end
if RUBY_VERSION =~ /\A1\.[0-8]\./
def open_file(file_name, mode, opts, &block)
File.open(file_name, mode, &block)
end
elsif RUBY_VERSION =~ /\A1\.9\./
def open_file(file_name, mode, opts, &block)
File.open(file_name, mode, opts, &block)
end
else
# Evaluate method as a string because **opts isn't valid syntax prior to
# Ruby 2.0.
eval(<<-EOF
def open_file(file_name, mode, opts, &block)
File.open(file_name, mode, **opts, &block)
end
EOF
)
end
def get_env(name)
result = ENV[name]
raise "The #{name} environment variable is not set" unless result
result
end
[:tzdata, :zdump, :zoneinfo].each do |name|
env_name = name.to_s.upcase
define_method("#{name}_path") do
get_env(env_name)
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/test/tc_timezone_index.rb | test/tc_timezone_index.rb | require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils')
require 'tzinfo/data/indexes/timezones'
class TCTimezoneIndex < Minitest::Test
def data_files
data_dir = tzdata_path
files = Dir.entries(data_dir).select {|name| name =~ /\A[^\.]+\z/ && !%w(backzone leapseconds).include?(name) }
files.collect {|name| File.join(data_dir, name)}
end
def get_zones(data, linked)
result = []
data_files.each do |data_file|
File.open(data_file, 'r') do |file|
file.each do |line|
if (data && line =~ /\AZone\s+([^\s]+)\s/) || (linked && line =~ /\ALink\s+[^\s]+\s+([^\s]+)/)
result << $1
end
end
end
end
result.sort
end
# TZInfo v2 removed the timezones method.
if TZInfo::Data::Indexes::Timezones.respond_to?(:timezones)
def test_timezones
assert_array_same_items(get_zones(true, true), TZInfo::Data::Indexes::Timezones.timezones)
end
end
def test_data_timezones
assert_array_same_items(get_zones(true, false), TZInfo::Data::Indexes::Timezones.data_timezones)
end
def test_linked_timezones
assert_array_same_items(get_zones(false, true), TZInfo::Data::Indexes::Timezones.linked_timezones)
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/test/tc_definitions.rb | test/tc_definitions.rb | require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils')
require 'date'
require 'tmpdir'
require 'set'
class TCDefinitions < Minitest::Test
@@warned_for_datetime = Set.new
@@warned_for_time = Set.new
@@warned_for_datetime_lock = Mutex.new
@@warned_for_time_lock = Mutex.new
class << self
private
def enum_timezones(base_dir, dir = nil, &block)
Dir.foreach(dir ? File.join(base_dir, dir) : base_dir) do |entry|
unless entry =~ /\A\./
path = dir ? File.join(dir, entry) : entry
full_path = File.join(base_dir, path)
if File.directory?(full_path)
enum_timezones(base_dir, path, &block)
else
yield path
end
end
end
end
def data_files
data_dir = tzdata_path
files = Dir.entries(data_dir).select do |name|
name =~ /\A[^\.]+\z/ &&
!%w(backzone calendars leapseconds CONTRIBUTING LICENSE Makefile NEWS README SECURITY SOURCE Theory version).include?(name) &&
File.file?(File.join(data_dir, name))
end
files.collect {|name| File.join(data_dir, name)}
end
end
enum_timezones(zoneinfo_path) do |identifier|
define_method("test_#{identifier}") do
# 50 years of future transitions are generated. Assume that the year from
# the tzdata version is the year the TZInfo::Data modules were generated.
max_year = TZInfo::Data::Version::TZDATA.to_i + 50
zone = TZInfo::Timezone.get(identifier)
assert_equal(identifier, zone.identifier)
old_lang = ENV['LANG']
begin
# Use standard C locale to ensure that zdump outputs dates in a format
# that can be understood
ENV['LANG'] = 'C'
zdump_cmdline = "'#{zdump_path}' -c #{max_year} -v \"#{File.absolute_path(File.join(zoneinfo_path, identifier))}\""
IO.popen(zdump_cmdline) do |io|
io.each_line do |line|
line.chomp!
check_zdump_line(zone, line, max_year) {|s| parse_as_datetime(s) }
check_zdump_line(zone, line, max_year) {|s| parse_as_time(s) }
end
end
raise "Failed to execute #{zdump_cmdline}" unless $? == 0
ensure
ENV['LANG'] = old_lang
end
end
end
data_files.each do |data_file|
File.open(data_file, 'r') do |file|
file.each do |line|
if line =~ /\AZone\s+([^\s]+)\s/
identifier = $1
define_method("test_#{identifier}_is_data") do
zone = TZInfo::Timezone.get(identifier)
assert_equal(identifier, zone.identifier)
assert_kind_of(TZInfo::DataTimezone, zone)
end
elsif line =~ /\ALink\s+([^\s]+)\s+([^\s]+)/
link_to_identifier = $1
identifier = $2
define_method("test_#{identifier}_is_link_to_#{link_to_identifier}") do
zone = TZInfo::Timezone.get(identifier)
assert_equal(identifier, zone.identifier)
assert_kind_of(TZInfo::LinkedTimezone, zone)
assert_equal(link_to_identifier, zone.send(:info).link_to_identifier)
end
end
end
end
end
private
def resolve_ambiguity(periods, identifier, tzi_period)
# Attempt to resolve by just the identifier.
result = periods.select {|period| period.zone_identifier.to_s == identifier}
if result.length > 1
# No observable difference. Resolve by finding the actual period
# no the time to be in based on the utc time.
result.select {|period| period == tzi_period}
else
result
end
end
def fix_datetime_start(time_or_datetime)
# Handle TZInfo 2.0.0 to 2.0.4 returning DateTime instances that interpret
# timestamps using the Julian calendar when they are before the adoption of
# the Gregorian calendar in Italy. Adjust the start so the date and time
# can be intepreted using the Gregorian calendar (as would be the case with
# the Time class).
if time_or_datetime.respond_to?(:start) && time_or_datetime.start != Date::GREGORIAN && time_or_datetime.respond_to?(:new_start)
time_or_datetime.new_start(Date::GREGORIAN)
else
time_or_datetime
end
end
def check_zdump_line(zone, line, max_year)
if line =~ /\A[^\s]+\s+(?:([A-Za-z][a-z]{2}\s[A-Za-z][a-z]{2}\s+[0-9]+\s[0-9]+:[0-9]+:[0-9]+\s-?[0-9]+)\s[A-Z]+|(-?[0-9]+))\s=\s([A-Za-z][a-z]{2}\s[A-Za-z][a-z]{2}\s+[0-9]+\s[0-9]+:[0-9]+:[0-9]+\s-?[0-9]+)\s([A-Za-z0-9+\-]+)\sisdst=([01])/ then
assert_nothing_raised("Exception raised processing line:\n#{line}") do
utc = yield $1 || $2
local = yield $3
identifier = $4
is_dst = $5 == '1'
# zdump 2021b outputs dates with years in the far future (after
# max_year). TZInfo::Data doesn't include a rule for years beyond the
# end of the data. Ignore them. Note that the start of max_year is the
# cutoff passed to zdump.
if utc && local && utc.year < max_year
tzi_local = zone.utc_to_local(utc)
tzi_period = zone.period_for_utc(utc)
tzi_identifier = tzi_period.zone_identifier.to_s
tzi_is_dst = tzi_period.dst?
tzi_local = fix_datetime_start(tzi_local)
# TZInfo v2 returns times with a local offset, TZInfo v1 doesn't. For
# now, compare just the date and time, by removing the offset.
# Eventually this will be changed to check the offset is correct.
if tzi_local.respond_to?(:offset) && tzi_local.offset != 0 && tzi_local.respond_to?(:new_offset)
# DateTime
tzi_local = tzi_local.new_offset(0) + tzi_local.offset
elsif tzi_local.respond_to?(:utc_offset) && tzi_local.utc_offset != 0 && tzi_local.respond_to?(:getutc)
# Time
tzi_local = tzi_local.getutc + tzi_local.utc_offset
end
msg_zdump = "zdump: #{zone.identifier} #{utc} UTC #{local} #{identifier} is_dst=#{is_dst ? '1' : '0'}"
msg_tzinfo = "tzinfo (u->l): #{zone.identifier} #{utc} UTC #{tzi_local} #{tzi_identifier} is_dst=#{tzi_is_dst ? '1' : '0'}"
message = "#{msg_zdump}\n#{msg_tzinfo}"
assert_equal(local, tzi_local, "Local times don't match:\n#{message}")
assert_equal(identifier, tzi_identifier, "Identifiers don't match:\n#{message}\n#")
assert_equal(is_dst, tzi_is_dst, "DST flag doesn't match:\n#{message}")
tzi_utc = zone.local_to_utc(local, is_dst) {|periods| resolve_ambiguity(periods, identifier, tzi_period)}
tzi_local_identifier = (zone.period_for_local(local, is_dst) {|periods| resolve_ambiguity(periods, identifier, tzi_period)}).zone_identifier.to_s
tzi_utc = fix_datetime_start(tzi_utc)
msg_zdump = "zdump: #{zone.identifier} #{utc} UTC #{local} #{identifier}"
msg_tzinfo = "tzinfo (l->u): #{zone.identifier} #{tzi_utc} UTC #{local} #{tzi_local_identifier}"
message = "#{msg_zdump}\n#{msg_tzinfo}"
assert_equal(utc, tzi_utc, "UTC times don't match:\n#{message}")
assert_equal(identifier, tzi_local_identifier, "Local identifiers don't match:\n#{message}")
end
end
else
assert_match(/(?:-?\d+\s\(gmtime failed\)\s=\s|\s=\s(?:NULL|-?\d+\s\(localtime failed\))\z)/, line, 'Unexpected zdump format')
end
end
MONTHS = %w(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec).freeze
def parse_zdump_timestamp(s)
if s =~ /\A(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d\d?)\s(\d\d):(\d\d):(\d\d)\s(-?\d+)\z/
month = MONTHS.index($1) + 1
[[$6.to_i, month, $2.to_i, $3.to_i, $4.to_i, $5.to_i], nil]
elsif s =~ /\A-?[0-9]+\z/
[nil, s.to_i]
else
raise "Unexpected zdump timestamp format: #{s}"
end
end
JD_EPOCH = 2440588
def parse_as_datetime(s)
datetime_params, timestamp = parse_zdump_timestamp(s)
begin
datetime_params ?
DateTime.new(*datetime_params, 0, Date::GREGORIAN) :
DateTime.jd(JD_EPOCH + Rational(timestamp, 86400)).new_start(Date::GREGORIAN)
rescue => e
# JRuby doesn't support DateTimes far in the past.
type = e.to_s
if @@warned_for_datetime_lock.synchronize { @@warned_for_datetime.add?(type) }
warn("Skipping DateTime test for #{s}: #{type}")
end
nil
end
end
def parse_as_time(s)
time_params, timestamp = parse_zdump_timestamp(s)
begin
time_params ? Time.utc(*time_params) : Time.at(timestamp).utc
rescue => e
# Time doesn't support the full range required on all platforms.
type = e.to_s
if @@warned_for_time_lock.synchronize { @@warned_for_time.add?(type) }
warn("Skipping Time test for #{s}: #{type}")
end
nil
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/test/tc_country_index.rb | test/tc_country_index.rb | require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils')
require 'tzinfo/data/indexes/countries'
class TCCountryIndex < Minitest::Test
def countries
data_dir = tzdata_path
primary_zones = {}
secondary_zones = {}
open_file(File.join(data_dir, 'zone1970.tab'), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
line.chomp!
if line =~ /\A([A-Z]{2}(?:,[A-Z]{2})*)\t(?:([+\-])(\d{2})(\d{2})([+\-])(\d{3})(\d{2})|([+\-])(\d{2})(\d{2})(\d{2})([+\-])(\d{3})(\d{2})(\d{2}))\t([^\t]+)(?:\t([^\t]+))?\z/
codes = $1
if $2
latitude = dms_to_rational($2, $3, $4)
longitude = dms_to_rational($5, $6, $7)
else
latitude = dms_to_rational($8, $9, $10, $11)
longitude = dms_to_rational($12, $13, $14, $15)
end
zone_identifier = $16
description = $17
country_timezone = {:zone_identifier => zone_identifier, :latitude => latitude, :longitude => longitude, :description => description}
codes = codes.split(',')
(primary_zones[codes.first] ||= []) << country_timezone
codes[1..-1].each do |code|
(secondary_zones[code] ||= []) << country_timezone
end
end
end
end
countries = {}
open_file(File.join(data_dir, 'iso3166.tab'), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
line.chomp!
if line =~ /\A([A-Z]{2})\t(.+)\z/
code = $1
name = $2
zones = (primary_zones[code] || []) + (secondary_zones[code] || [])
countries[code] = {:name => name, :zones => zones}
end
end
end
countries
end
def dms_to_rational(sign, degrees, minutes, seconds = nil)
result = degrees.to_i + Rational(minutes.to_i, 60)
result += Rational(seconds.to_i, 3600) if seconds
result = -result if sign == '-'
result
end
def test_countries
expected = countries
actual = TZInfo::Data::Indexes::Countries.countries
assert_array_same_items(expected.keys.sort, actual.keys.sort)
expected.each do |code, expected_country|
actual_country = actual[code]
assert_equal(code, actual_country.code)
assert_equal(expected_country[:name], actual_country.name)
assert_equal(expected_country[:zones].length, actual_country.zones.length)
expected_country[:zones].zip(actual_country.zones).each do |expected_zone, actual_zone|
assert_equal(expected_zone[:zone_identifier], actual_zone.identifier)
assert_equal(expected_zone[:latitude], actual_zone.latitude)
assert_equal(expected_zone[:longitude], actual_zone.longitude)
if expected_zone[:description]
assert_equal(expected_zone[:description], actual_zone.description)
else
assert_nil(actual_zone.description)
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data.rb | lib/tzinfo/data.rb | # Top level module for TZInfo.
module TZInfo
# Top level module for TZInfo::Data.
module Data
end
end
require 'tzinfo/data/version'
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/version.rb | lib/tzinfo/data/version.rb | module TZInfo
module Data
# TZInfo::Data version number.
VERSION = '1.2025.3'
# TZInfo::Data version information.
module Version
# The format of the Ruby modules. The only format currently supported by
# TZInfo is version 1.
FORMAT = 1
# TZInfo::Data version number.
STRING = VERSION
# The version of the {IANA Time Zone Database}[https://www.iana.org/time-zones]
# used to generate this version of TZInfo::Data.
TZDATA = '2025c'
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/tzdataparser.rb | lib/tzinfo/data/tzdataparser.rb | require 'date'
require 'fileutils'
module TZInfo
module Data
# Utility methods used by TZDataParser and associated classes.
#
# @private
module TZDataParserUtils #:nodoc:
# Wrapper for File.open that supports passing hash options for specifying
# encodings on Ruby 1.9+. The options are ignored on earlier versions of
# Ruby.
if RUBY_VERSION =~ /\A1\.[0-8]\./
def open_file(file_name, mode, opts, &block)
File.open(file_name, mode, &block)
end
elsif RUBY_VERSION =~ /\A1\.9\./
def open_file(file_name, mode, opts, &block)
File.open(file_name, mode, opts, &block)
end
else
# Evaluate method as a string because **opts isn't valid syntax prior to
# Ruby 2.0.
eval(<<-EOF
def open_file(file_name, mode, opts, &block)
File.open(file_name, mode, **opts, &block)
end
EOF
)
end
private :open_file
private
# Parses a month specified in the tz data and converts it to a number
# between 1 and 12 representing January to December.
def parse_month(month)
lower = month.downcase
if lower =~ /^jan/
@month = 1
elsif lower =~ /^feb/
@month = 2
elsif lower =~ /^mar/
@month = 3
elsif lower =~ /^apr/
@month = 4
elsif lower =~ /^may/
@month = 5
elsif lower =~ /^jun/
@month = 6
elsif lower =~ /^jul/
@month = 7
elsif lower =~ /^aug/
@month = 8
elsif lower =~ /^sep/
@month = 9
elsif lower =~ /^oct/
@month = 10
elsif lower =~ /^nov/
@month = 11
elsif lower =~ /^dec/
@month = 12
else
raise "Invalid month: #{month}"
end
end
# Parses an offset string [-]h:m:s (minutes and seconds are optional). Returns
# the offset in seconds.
def parse_offset(offset)
raise "Invalid time: #{offset}" if offset !~ /^(-)?(?:([0-9]+)(?::([0-9]+)(?::([0-9]+))?)?)?$/
negative = !$1.nil?
hour = $2.nil? ? 0 : $2.to_i
minute = $3.nil? ? 0 : $3.to_i
second = $4.nil? ? 0 : $4.to_i
seconds = hour
seconds = seconds * 60
seconds = seconds + minute
seconds = seconds * 60
seconds = seconds + second
seconds = -seconds if negative
seconds
end
# Encloses the string in single quotes and escapes any single quotes in
# the content.
def quote_str(str)
"'#{str.gsub('\'', '\\\\\'')}'"
end
end
# Parses Time Zone Data from the IANA Time Zone Database and transforms it
# into a set of Ruby modules that can be used with TZInfo.
#
# Normally, this class wouldn't be used. It is only run to update the
# timezone data and index modules.
class TZDataParser
include TZDataParserUtils
# Default earliest year that will be considered.
DEFAULT_MIN_YEAR = 1800
# Default number of future years data to generate (not including the
# current year).
DEFAULT_FUTURE_YEARS = 50
# Earliest year that will be considered. Defaults to DEFAULT_MIN_YEAR.
attr_accessor :min_year
# Latest year that will be considered. Defaults to the current year plus
# FUTURE_YEARS.
attr_accessor :max_year
# Whether to generate zone definitions (set to false to stop zones being
# generated).
attr_accessor :generate_zones
# Whether to generate country definitions (set to false to stop countries
# being generated).
attr_accessor :generate_countries
# Limit the set of zones to generate (set to an array containing zone
# identifiers).
attr_accessor :only_zones
# Zones to exclude from generation when not using only_zones (set to an
# array containing zone identifiers).
attr_accessor :exclude_zones
# Initializes a new TZDataParser. input_dir must contain the extracted
# tzdata tarball. output_dir is the location to output the modules
# (in definitions and indexes directories).
def initialize(input_dir, output_dir)
super()
@input_dir = input_dir
@output_dir = output_dir
@min_year = DEFAULT_MIN_YEAR
@max_year = Time.now.year + DEFAULT_FUTURE_YEARS
@rule_sets = {}
@zones = {}
@countries = {}
@no_rules = TZDataNoRules.new
@generate_zones = true
@generate_countries = true
@only_zones = []
@exclude_zones = []
end
# Reads the tzdata source and generates the classes. Progress information
# is written to standard out.
def execute
# Note that the backzone file is ignored. backzone contains alternative
# definitions of certain zones, primarily for pre-1970 data. It is not
# recommended for ordinary use and the tzdata Makefile does not
# install its entries by default.
files = Dir.entries(@input_dir).select do |file|
file =~ /\A[^\.]+\z/ &&
!%w(backzone calendars leapseconds CONTRIBUTING LICENSE Makefile NEWS README SECURITY SOURCE Theory version).include?(file) &&
File.file?(File.join(@input_dir, file))
end
files.each {|file| load_rules(file) }
files.each {|file| load_zones(file) }
files.each {|file| load_links(file) }
load_countries
if @generate_zones
modules = []
if @only_zones.nil? || @only_zones.empty?
@zones.each_value {|zone|
zone.write_module(@output_dir) unless @exclude_zones.include?(zone.name)
}
else
@only_zones.each {|id|
zone = @zones[id]
zone.write_module(@output_dir)
}
end
write_timezones_index
end
if @generate_countries
write_countries_index
end
end
private
# Loads all the Rule definitions from the tz data and stores them in
# the rule_sets instance variable.
def load_rules(file)
puts 'load_rules: ' + file
# Files are in ASCII, but may change to UTF-8 (a superset of ASCII)
# in the future.
open_file(File.join(@input_dir, file), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
line = line.gsub(/#.*$/, '')
line = line.gsub(/\s+$/, '')
if line =~ /^Rule\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)/
name = $1
if @rule_sets[name].nil?
@rule_sets[name] = TZDataRuleSet.new(name)
end
@rule_sets[name].add_rule(TZDataRule.new($2, $3, $4, $5, $6, $7, $8, $9))
end
end
end
end
# Gets a rules object for the given reference. Might be a named rule set,
# a fixed offset or an empty ruleset.
def get_rules(ref)
if ref == '-'
@no_rules
elsif ref =~ /^-?[0-9]+:[0-9]+$/
TZDataFixedOffsetRules.new(parse_offset(ref))
else
rule_set = @rule_sets[ref]
raise "Ruleset not found: #{ref}" if rule_set.nil?
rule_set
end
end
# Loads in the Zone definitions from the tz data and stores them in @zones.
def load_zones(file)
puts 'load_zones: ' + file
in_zone = nil
# Files are in ASCII, but may change to UTF-8 (a superset of ASCII)
# in the future.
open_file(File.join(@input_dir, file), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
line = line.gsub(/#.*$/, '')
line = line.gsub(/\s+$/, '')
if in_zone
if line =~ /^\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)(\s+([0-9]+(\s+.*)?))?$/
in_zone.add_observance(TZDataObservance.new($1, get_rules($2), $3, $5))
in_zone = nil if $4.nil?
end
else
if line =~ /^Zone\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)(\s+([0-9]+(\s+.*)?))?$/
name = $1
if @zones[name].nil?
@zones[name] = TZDataZone.new(name, @min_year..@max_year)
end
@zones[name].add_observance(TZDataObservance.new($2, get_rules($3), $4, $6))
in_zone = @zones[name] if !$5.nil?
end
end
end
end
end
# Loads in the links and stores them in @zones.
def load_links(file)
puts 'load_links: ' + file
# Files are in ASCII, but may change to UTF-8 (a superset of ASCII)
# in the future.
open_file(File.join(@input_dir, file), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
line = line.gsub(/#.*$/, '')
line = line.gsub(/\s+$/, '')
if line =~ /^Link\s+([^\s]+)\s+([^\s]+)/
name = $2
link_to = @zones[$1]
raise "Link to zone not found (#{name}->#{link_to})" if link_to.nil?
raise "Zone already defined: #{name}" if !@zones[name].nil?
@zones[name] = TZDataLink.new(name, link_to)
end
end
end
end
# Loads countries from iso3166.tab and zone1970.tab and stores the
# result in the countries instance variable.
def load_countries
puts 'load_countries'
# iso3166.tab is ASCII encoded, but is planned to change to UTF-8 (a
# superset of ASCII) in the future.
open_file(File.join(@input_dir, 'iso3166.tab'), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
if line =~ /^([A-Z]{2})\t(.*)$/
code = $1
name = $2
@countries[code] = TZDataCountry.new(code, name)
end
end
end
primary_zones = {}
secondary_zones = {}
# zone1970.tab is UTF-8 encoded.
open_file(File.join(@input_dir, 'zone1970.tab'), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
file.each_line do |line|
line.chomp!
if line =~ /^([A-Z]{2}(?:,[A-Z]{2})*)\t([^\t]+)\t([^\t]+)(\t(.*))?$/
codes = $1
location_str = $2
zone_name = $3
description = $5
location = TZDataLocation.new(location_str)
zone = @zones[zone_name]
raise "Zone not found: #{zone_name}" if zone.nil?
description = nil if description == ''
country_timezone = TZDataCountryTimezone.new(zone, description, location)
codes = codes.split(',')
(primary_zones[codes.first] ||= []) << country_timezone
codes[1..-1].each do |code|
(secondary_zones[code] ||= []) << country_timezone
end
end
end
end
[primary_zones, secondary_zones].each do |zones|
zones.each_pair do |code, country_timezones|
country = @countries[code]
raise "Country not found: #{code}" if country.nil?
country_timezones.each do |country_timezone|
country.add_zone(country_timezone)
end
end
end
end
# Writes a country index file.
def write_countries_index
dir = File.join(@output_dir, 'indexes')
FileUtils.mkdir_p(dir)
open_file(File.join(dir, 'countries.rb'), 'w', :external_encoding => 'UTF-8', :universal_newline => true) do |file|
file.puts('# encoding: UTF-8')
file.puts('')
file.puts('# This file contains data derived from the IANA Time Zone Database')
file.puts('# (https://www.iana.org/time-zones).')
file.puts('')
file.puts('module TZInfo')
file.puts(' module Data')
file.puts(' module Indexes')
file.puts(' module Countries')
file.puts(' include CountryIndexDefinition')
file.puts('')
countries = @countries.values.sort {|c1,c2| c1.code <=> c2.code}
countries.each {|country| country.write_index_record(file)}
file.puts(' end') # end module Countries
file.puts(' end') # end module Indexes
file.puts(' end') # end module Data
file.puts('end') # end module TZInfo
end
end
# Writes a timezone index file.
def write_timezones_index
dir = File.join(@output_dir, 'indexes')
FileUtils.mkdir_p(dir)
open_file(File.join(dir, 'timezones.rb'), 'w', :external_encoding => 'UTF-8', :universal_newline => true) do |file|
file.puts('# encoding: UTF-8')
file.puts('')
file.puts('# This file contains data derived from the IANA Time Zone Database')
file.puts('# (https://www.iana.org/time-zones).')
file.puts('')
file.puts('module TZInfo')
file.puts(' module Data')
file.puts(' module Indexes')
file.puts(' module Timezones')
file.puts(' include TimezoneIndexDefinition')
file.puts('')
zones = @zones.values.sort {|t1,t2| t1.name <=> t2.name}
zones.each {|zone| zone.write_index_record(file)}
file.puts(' end') # end module Timezones
file.puts(' end') # end module Indexes
file.puts(' end') # end module Data
file.puts('end') # end module TZInfo
end
end
end
# Base class for all rule sets.
#
# @private
class TZDataRules #:nodoc:
# Name of the rule set, e.g. EU.
attr_reader :name
def initialize(name)
@name = name
end
def count
0
end
end
# Empty rule set with a fixed daylight savings (std) offset.
#
# @private
class TZDataFixedOffsetRules < TZDataRules #:nodoc:
attr_reader :offset
def initialize(offset)
super(offset.to_s)
@offset = offset
end
end
# An empty set of rules.
#
# @private
class TZDataNoRules < TZDataRules #:nodoc:
def initialize
super('-')
end
end
# A rule set (as defined by Rule name in the tz data).
#
# @private
class TZDataRuleSet < TZDataRules #:nodoc:
attr_reader :rules
def initialize(name)
super
@rules = []
end
# Adds a new rule to the set.
def add_rule(rule)
@rules << rule
end
def count
@rules.length
end
def each
@rules.each {|rule| yield rule}
end
end
# A rule in a RuleSet (a single Rule line in the tz data).
#
# @private
class TZDataRule #:nodoc:
include TZDataParserUtils
attr_reader :from
attr_reader :to
attr_reader :type
attr_reader :in_month
attr_reader :on_day
attr_reader :at_time
attr_reader :save
attr_reader :letter
def initialize(from, to, type, in_month, on_day, at_time, save, letter)
@from = parse_from(from)
@to = parse_to(to)
# replace a to of :only with the from year
raise 'to cannot be only if from is minimum' if @to == :only && @from == :min
@to = @from if @to == :only
@type = parse_type(type)
@in_month = parse_month(in_month)
@on_day = TZDataDayOfMonth.new(on_day)
@at_time = TZDataTime.new(at_time)
@save = parse_offset(save)
@letter = parse_letter(letter)
end
def activate(year)
# The following test ignores yearistype at present (currently unused in
# the data. parse_type currently excepts on encountering a year type.
if (@from == :min || @from <= year) && (@to == :max || @to >= year)
TZDataActivatedRule.new(self, year)
else
nil
end
end
def at_utc_time(year, utc_offset, std_offset)
absolute = @on_day.to_absolute(year, @in_month)
@at_time.to_utc(utc_offset, std_offset,
absolute.year, absolute.month, absolute.day)
end
private
def parse_from(from)
lower = from.downcase
if lower =~ /^min/
:min
elsif lower =~ /^[0-9]+$/
lower.to_i
else
raise "Invalid from: #{from}"
end
end
def parse_to(to)
lower = to.downcase
if lower =~ /^max/
:max
elsif lower =~ /^o/
:only
elsif lower =~ /^[0-9]+$/
lower.to_i
else
raise "Invalid to: #{to}"
end
end
def parse_type(type)
raise "Unsupported rule type: #{type}" if type != '-'
nil
end
def parse_letter(letter)
if letter == '-'
nil
else
letter
end
end
end
# Base class for Zones and Links.
#
# @private
class TZDataDefinition #:nodoc:
include TZDataParserUtils
attr_reader :name
attr_reader :name_elements
attr_reader :path_elements
def initialize(name)
@name = name
# + and - aren't allowed in class names
@name_elements = name.gsub(/-/, '__m__').gsub(/\+/, '__p__').split(/\//)
@path_elements = @name_elements.clone
@path_elements.pop
end
# Creates necessary directories, the file, writes the class header and footer
# and yields to a block to write the content.
def create_file(output_dir)
dir = File.join(output_dir, 'definitions', @path_elements.join(File::SEPARATOR))
FileUtils.mkdir_p(dir)
open_file(File.join(output_dir, 'definitions', @name_elements.join(File::SEPARATOR)) + '.rb', 'w', :external_encoding => 'UTF-8', :universal_newline => true) do |file|
file.instance_variable_set(:@tz_indent, 0)
def file.indent(by)
@tz_indent += by
end
def file.puts(s)
super("#{' ' * @tz_indent}#{s}")
end
file.puts('# encoding: UTF-8')
file.puts('')
file.puts('# This file contains data derived from the IANA Time Zone Database')
file.puts('# (https://www.iana.org/time-zones).')
file.puts('')
file.puts('module TZInfo')
file.indent(2)
file.puts('module Data')
file.indent(2)
file.puts('module Definitions')
file.indent(2)
@name_elements.each do |part|
file.puts("module #{part}")
file.indent(2)
end
file.puts('include TimezoneDefinition')
file.puts('')
yield file
@name_elements.each do
file.indent(-2)
file.puts('end')
end
file.indent(-2)
file.puts('end') # end module Definitions
file.indent(-2)
file.puts('end') # end module Data
file.indent(-2)
file.puts('end') # end module TZInfo
end
end
end
# A tz data Link.
#
# @private
class TZDataLink < TZDataDefinition #:nodoc:
include TZDataParserUtils
attr_reader :link_to
def initialize(name, link_to)
super(name)
@link_to = link_to
end
# Writes a module for this link.
def write_module(output_dir)
puts "writing link #{name}"
create_file(output_dir) {|file|
file.puts("linked_timezone #{quote_str(@name)}, #{quote_str(@link_to.name)}")
}
end
# Writes an index record for this link.
def write_index_record(file)
file.puts(" linked_timezone #{quote_str(@name)}")
end
end
# A tz data Zone. Each line from the tz data is loaded as a TZDataObservance.
#
# @private
class TZDataZone < TZDataDefinition #:nodoc:
include TZDataParserUtils
attr_reader :observances
def initialize(name, years)
super(name)
@years = years
@observances = []
end
def add_observance(observance)
@observances << observance
end
# Writes the module for the zone. Iterates all the periods and asks them
# to write all periods in the timezone.
def write_module(output_dir)
puts "writing zone #{name}"
create_file(output_dir) {|file|
file.puts("timezone #{quote_str(@name)} do |tz|")
file.indent(2)
transitions = find_transitions
transitions.output_module(file)
file.indent(-2)
file.puts('end')
}
end
# Writes an index record for this zone.
def write_index_record(file)
file.puts(" timezone #{quote_str(@name)}")
end
private
def find_transitions
transitions = TZDataTransitions.new(@years)
# algorithm from zic.c outzone
start_time = nil
until_time = nil
@observances.each_with_index {|observance, i|
std_offset = 0
use_start = i > 0
use_until = i < @observances.length - 1
utc_offset = observance.utc_offset
start_zone_id = nil
start_utc_offset = observance.utc_offset
start_std_offset = 0
if observance.rule_set.count == 0
std_offset = observance.std_offset
start_zone_id = observance.format.expand(utc_offset, std_offset, nil)
if use_start
transitions << TZDataTransition.new(start_time, utc_offset, std_offset, start_zone_id)
use_start = false
else
# zic algorithm only outputs this if std_offset is non-zero
# to get the initial LMT range, we output this regardless
transitions << TZDataTransition.new(nil, utc_offset, std_offset, start_zone_id)
end
else
@years.each {|year|
if use_until && year > observance.valid_until.year
break
end
activated_rules = []
observance.rule_set.each {|rule|
activated_rule = rule.activate(year)
activated_rules << activated_rule unless activated_rule.nil?
}
while true
# turn until_time into UTC using the current utc_offset and std_offset
until_time = observance.valid_until.to_utc(utc_offset, std_offset) if use_until
earliest = nil
activated_rules.each {|activated_rule|
# recalculate the time using the current std_offset
activated_rule.calculate_time(utc_offset, std_offset)
earliest = activated_rule if earliest.nil? || activated_rule.at < earliest.at
}
break if earliest.nil?
activated_rules.delete(earliest)
break if use_until && earliest.at >= until_time
std_offset = earliest.rule.save
use_start = false if use_start && earliest.at == start_time
if use_start
if earliest.at < start_time
start_utc_offset = observance.utc_offset
start_std_offset = std_offset
start_zone_id = observance.format.expand(start_utc_offset, earliest.rule.save, earliest.rule.letter)
next
end
if start_zone_id.nil? && start_utc_offset + start_std_offset == observance.utc_offset + std_offset
start_zone_id = observance.format.expand(start_utc_offset, earliest.rule.save, earliest.rule.letter)
end
end
zone_id = observance.format.expand(observance.utc_offset, earliest.rule.save, earliest.rule.letter)
transitions << TZDataTransition.new(earliest.at, observance.utc_offset, earliest.rule.save, zone_id)
end
}
end
if use_start
start_zone_id = observance.format.expand(nil, nil, nil) if start_zone_id.nil? && observance.format.fixed?
raise 'Could not determine time zone abbreviation to use just after until time' if start_zone_id.nil?
transitions << TZDataTransition.new(start_time, start_utc_offset, start_std_offset, start_zone_id)
end
start_time = observance.valid_until.to_utc(utc_offset, std_offset) if use_until
}
transitions
end
end
# A observance within a zone (a line within the zone definition).
#
# @private
class TZDataObservance #:nodoc:
include TZDataParserUtils
attr_reader :utc_offset
attr_reader :rule_set
attr_reader :format
attr_reader :valid_until
def initialize(utc_offset, rule_set, format, valid_until)
@utc_offset = parse_offset(utc_offset)
@rule_set = rule_set
@format = TZDataFormat.new(format)
@valid_until = valid_until.nil? ? nil : TZDataUntil.new(valid_until)
end
def std_offset
if @rule_set.kind_of?(TZDataFixedOffsetRules)
@rule_set.offset
else
0
end
end
end
# Collection of TZDataTransition instances used when building a zone class.
#
# @private
class TZDataTransitions #:nodoc:
include TZDataParserUtils
def initialize(years)
@years = years
@transitions = []
end
def << (transition)
@transitions << transition
end
def output_module(file)
optimize
# Try and end on a transition to std if one happens in the last year.
if @transitions.length > 1 &&
@transitions.last.std_offset != 0 &&
@transitions[@transitions.length - 2].std_offset == 0 &&
@transitions[@transitions.length - 2].at_utc.year == @years.max
transitions = @transitions[0..@transitions.length - 2]
else
transitions = @transitions
end
process_offsets(file)
file.puts('')
transitions.each do |t|
t.write(file)
end
end
private
def optimize
@transitions.sort!
# Optimization logic from zic.c writezone.
from_i = 0
to_i = 0
while from_i < @transitions.length
if to_i > 1 &&
!@transitions[from_i].at_utc.nil? &&
!@transitions[to_i - 1].at_utc.nil? &&
@transitions[from_i].at_utc + Rational(@transitions[to_i - 1].total_offset, 86400) <=
@transitions[to_i - 1].at_utc + Rational(@transitions[to_i - 2].total_offset, 86400)
@transitions[to_i - 1] = @transitions[from_i].clone_with_at(@transitions[to_i - 1].at_utc)
from_i += 1
next
end
# Shuffle transitions up, eliminating any redundant transitions
# along the way.
if to_i == 0 ||
@transitions[to_i - 1].utc_offset != @transitions[from_i].utc_offset ||
@transitions[to_i - 1].std_offset != @transitions[from_i].std_offset ||
@transitions[to_i - 1].zone_id != @transitions[from_i].zone_id
@transitions[to_i] = @transitions[from_i]
to_i += 1
end
from_i += 1
end
if to_i > 0
@transitions = @transitions[0..to_i - 1]
else
@transitions = []
end
end
def quote_zone_id(zone_id)
if zone_id =~ %r{[\-+']}
":#{quote_str(zone_id)}"
else
":#{zone_id}"
end
end
def process_offsets(file)
# A bit of a hack at the moment. The offset used to be output with
# each period (pair of transitions). They are now separated from the
# transition data. The code should probably be changed at some point to
# setup the offsets at an earlier stage.
# Assume that when this is called, the first transition is the Local
# Mean Time initial rule or a transition with no time that defines the
# offset for the entire zone.
offsets = []
# Find the first std offset. Timezones always start in std.
@transitions.each do |t|
if t.std_offset == 0
offset = {:utc_offset => t.utc_offset,
:std_offset => t.std_offset,
:zone_id => t.zone_id,
:name => 'o0'}
offsets << offset
break
end
end
@transitions.each do |t|
offset = offsets.find do |o|
o[:utc_offset] == t.utc_offset &&
o[:std_offset] == t.std_offset &&
o[:zone_id] == t.zone_id
end
unless offset
offset = {:utc_offset => t.utc_offset,
:std_offset => t.std_offset,
:zone_id => t.zone_id,
:name => "o#{offsets.length}"}
offsets << offset
end
t.offset_name = offset[:name]
end
offsets.each do |offset|
file.puts("tz.offset :#{offset[:name]}, #{offset[:utc_offset]}, #{offset[:std_offset]}, #{quote_zone_id(offset[:zone_id])}")
end
end
end
# A transition that will be used to write the periods in a zone class.
#
# @private
class TZDataTransition #:nodoc:
include Comparable
EPOCH = DateTime.new(1970, 1, 1)
attr_reader :at_utc
attr_reader :utc_offset
attr_reader :std_offset
attr_reader :zone_id
attr_accessor :offset_name
def initialize(at_utc, utc_offset, std_offset, zone_id)
@at_utc = at_utc
@utc_offset = utc_offset
@std_offset = std_offset
@zone_id = zone_id
@offset_name = nil
end
def to_s
"At #{at_utc} UTC switch to UTC offset #{@utc_offset} with std offset #{@std_offset}, zone id #{@zone_id}"
end
def <=>(transition)
if @at_utc == transition.at_utc
0
elsif @at_utc.nil?
-1
elsif transition.nil?
1
else
@at_utc - transition.at_utc
end
end
def total_offset
@utc_offset + @std_offset
end
def clone_with_at(at_utc)
TZDataTransition.new(at_utc, @utc_offset, @std_offset, @zone_id)
end
def write(file)
if @at_utc
file.puts "tz.transition #{@at_utc.year}, #{@at_utc.mon}, :#{@offset_name}, #{timestamp_parameters(@at_utc)}"
end
end
private
def timestamp_parameters(datetime)
timestamp = ((datetime - EPOCH) * 86400).to_i
if timestamp < 0 || timestamp > 2147483647
# Output DateTime parameters as well as a timestamp for platforms
# where Time doesn't support negative or 64-bit values.
"#{timestamp}, #{datetime.ajd.numerator}, #{datetime.ajd.denominator}"
else
timestamp
end
end
end
# An instance of a rule for a year.
#
# @private
class TZDataActivatedRule #:nodoc:
attr_reader :rule
attr_reader :year
attr_reader :at
def initialize(rule, year)
@rule = rule
@year = year
@at = nil
end
def calculate_time(utc_offset, std_offset)
@at = @rule.at_utc_time(@year, utc_offset, std_offset)
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | true |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Zulu.rb | lib/tzinfo/data/definitions/Zulu.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Zulu
include TimezoneDefinition
linked_timezone 'Zulu', 'Etc/UTC'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/PST8PDT.rb | lib/tzinfo/data/definitions/PST8PDT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module PST8PDT
include TimezoneDefinition
linked_timezone 'PST8PDT', 'America/Los_Angeles'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Libya.rb | lib/tzinfo/data/definitions/Libya.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Libya
include TimezoneDefinition
linked_timezone 'Libya', 'Africa/Tripoli'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/MST.rb | lib/tzinfo/data/definitions/MST.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module MST
include TimezoneDefinition
linked_timezone 'MST', 'America/Phoenix'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/GB.rb | lib/tzinfo/data/definitions/GB.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module GB
include TimezoneDefinition
linked_timezone 'GB', 'Europe/London'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/NZ__m__CHAT.rb | lib/tzinfo/data/definitions/NZ__m__CHAT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module NZ__m__CHAT
include TimezoneDefinition
linked_timezone 'NZ-CHAT', 'Pacific/Chatham'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/CET.rb | lib/tzinfo/data/definitions/CET.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module CET
include TimezoneDefinition
linked_timezone 'CET', 'Europe/Brussels'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/GB__m__Eire.rb | lib/tzinfo/data/definitions/GB__m__Eire.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module GB__m__Eire
include TimezoneDefinition
linked_timezone 'GB-Eire', 'Europe/London'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Navajo.rb | lib/tzinfo/data/definitions/Navajo.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Navajo
include TimezoneDefinition
linked_timezone 'Navajo', 'America/Denver'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/GMT__p__0.rb | lib/tzinfo/data/definitions/GMT__p__0.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module GMT__p__0
include TimezoneDefinition
linked_timezone 'GMT+0', 'Etc/GMT'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/GMT__m__0.rb | lib/tzinfo/data/definitions/GMT__m__0.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module GMT__m__0
include TimezoneDefinition
linked_timezone 'GMT-0', 'Etc/GMT'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/MST7MDT.rb | lib/tzinfo/data/definitions/MST7MDT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module MST7MDT
include TimezoneDefinition
linked_timezone 'MST7MDT', 'America/Denver'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/UCT.rb | lib/tzinfo/data/definitions/UCT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module UCT
include TimezoneDefinition
linked_timezone 'UCT', 'Etc/UTC'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Israel.rb | lib/tzinfo/data/definitions/Israel.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Israel
include TimezoneDefinition
linked_timezone 'Israel', 'Asia/Jerusalem'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/HST.rb | lib/tzinfo/data/definitions/HST.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module HST
include TimezoneDefinition
linked_timezone 'HST', 'Pacific/Honolulu'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Singapore.rb | lib/tzinfo/data/definitions/Singapore.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Singapore
include TimezoneDefinition
linked_timezone 'Singapore', 'Asia/Singapore'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/EST.rb | lib/tzinfo/data/definitions/EST.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module EST
include TimezoneDefinition
linked_timezone 'EST', 'America/Panama'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Factory.rb | lib/tzinfo/data/definitions/Factory.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Factory
include TimezoneDefinition
timezone 'Factory' do |tz|
tz.offset :o0, 0, 0, :'-00'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/ROK.rb | lib/tzinfo/data/definitions/ROK.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module ROK
include TimezoneDefinition
linked_timezone 'ROK', 'Asia/Seoul'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/EET.rb | lib/tzinfo/data/definitions/EET.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module EET
include TimezoneDefinition
linked_timezone 'EET', 'Europe/Athens'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/W__m__SU.rb | lib/tzinfo/data/definitions/W__m__SU.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module W__m__SU
include TimezoneDefinition
linked_timezone 'W-SU', 'Europe/Moscow'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Turkey.rb | lib/tzinfo/data/definitions/Turkey.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Turkey
include TimezoneDefinition
linked_timezone 'Turkey', 'Europe/Istanbul'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Iran.rb | lib/tzinfo/data/definitions/Iran.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Iran
include TimezoneDefinition
linked_timezone 'Iran', 'Asia/Tehran'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Portugal.rb | lib/tzinfo/data/definitions/Portugal.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Portugal
include TimezoneDefinition
linked_timezone 'Portugal', 'Europe/Lisbon'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/NZ.rb | lib/tzinfo/data/definitions/NZ.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module NZ
include TimezoneDefinition
linked_timezone 'NZ', 'Pacific/Auckland'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/GMT0.rb | lib/tzinfo/data/definitions/GMT0.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module GMT0
include TimezoneDefinition
linked_timezone 'GMT0', 'Etc/GMT'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/MET.rb | lib/tzinfo/data/definitions/MET.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module MET
include TimezoneDefinition
linked_timezone 'MET', 'Europe/Brussels'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/WET.rb | lib/tzinfo/data/definitions/WET.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module WET
include TimezoneDefinition
linked_timezone 'WET', 'Europe/Lisbon'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Universal.rb | lib/tzinfo/data/definitions/Universal.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Universal
include TimezoneDefinition
linked_timezone 'Universal', 'Etc/UTC'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/CST6CDT.rb | lib/tzinfo/data/definitions/CST6CDT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module CST6CDT
include TimezoneDefinition
linked_timezone 'CST6CDT', 'America/Chicago'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Eire.rb | lib/tzinfo/data/definitions/Eire.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Eire
include TimezoneDefinition
linked_timezone 'Eire', 'Europe/Dublin'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/UTC.rb | lib/tzinfo/data/definitions/UTC.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module UTC
include TimezoneDefinition
linked_timezone 'UTC', 'Etc/UTC'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/PRC.rb | lib/tzinfo/data/definitions/PRC.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module PRC
include TimezoneDefinition
linked_timezone 'PRC', 'Asia/Shanghai'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Cuba.rb | lib/tzinfo/data/definitions/Cuba.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Cuba
include TimezoneDefinition
linked_timezone 'Cuba', 'America/Havana'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Greenwich.rb | lib/tzinfo/data/definitions/Greenwich.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Greenwich
include TimezoneDefinition
linked_timezone 'Greenwich', 'Etc/GMT'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Japan.rb | lib/tzinfo/data/definitions/Japan.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Japan
include TimezoneDefinition
linked_timezone 'Japan', 'Asia/Tokyo'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Poland.rb | lib/tzinfo/data/definitions/Poland.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Poland
include TimezoneDefinition
linked_timezone 'Poland', 'Europe/Warsaw'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/GMT.rb | lib/tzinfo/data/definitions/GMT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module GMT
include TimezoneDefinition
linked_timezone 'GMT', 'Etc/GMT'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Jamaica.rb | lib/tzinfo/data/definitions/Jamaica.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Jamaica
include TimezoneDefinition
linked_timezone 'Jamaica', 'America/Jamaica'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Iceland.rb | lib/tzinfo/data/definitions/Iceland.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Iceland
include TimezoneDefinition
linked_timezone 'Iceland', 'Africa/Abidjan'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/EST5EDT.rb | lib/tzinfo/data/definitions/EST5EDT.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module EST5EDT
include TimezoneDefinition
linked_timezone 'EST5EDT', 'America/New_York'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Kwajalein.rb | lib/tzinfo/data/definitions/Kwajalein.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Kwajalein
include TimezoneDefinition
linked_timezone 'Kwajalein', 'Pacific/Kwajalein'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/ROC.rb | lib/tzinfo/data/definitions/ROC.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module ROC
include TimezoneDefinition
linked_timezone 'ROC', 'Asia/Taipei'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Hongkong.rb | lib/tzinfo/data/definitions/Hongkong.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Hongkong
include TimezoneDefinition
linked_timezone 'Hongkong', 'Asia/Hong_Kong'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Egypt.rb | lib/tzinfo/data/definitions/Egypt.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Egypt
include TimezoneDefinition
linked_timezone 'Egypt', 'Africa/Cairo'
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Chuuk.rb | lib/tzinfo/data/definitions/Pacific/Chuuk.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Chuuk
include TimezoneDefinition
linked_timezone 'Pacific/Chuuk', 'Pacific/Port_Moresby'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Easter.rb | lib/tzinfo/data/definitions/Pacific/Easter.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Easter
include TimezoneDefinition
timezone 'Pacific/Easter' do |tz|
tz.offset :o0, -26248, 0, :LMT
tz.offset :o1, -26248, 0, :EMT
tz.offset :o2, -25200, 0, :'-07'
tz.offset :o3, -25200, 3600, :'-06'
tz.offset :o4, -21600, 0, :'-06'
tz.offset :o5, -21600, 3600, :'-05'
tz.transition 1890, 1, :o1, -2524495352, 26042783081, 10800
tz.transition 1932, 9, :o2, -1178124152, 26211079481, 10800
tz.transition 1968, 11, :o3, -36619200, 7320491, 3
tz.transition 1969, 3, :o2, -23922000, 19522485, 8
tz.transition 1969, 11, :o3, -3355200, 7321646, 3
tz.transition 1970, 3, :o2, 7527600
tz.transition 1970, 10, :o3, 24465600
tz.transition 1971, 3, :o2, 37767600
tz.transition 1971, 10, :o3, 55915200
tz.transition 1972, 3, :o2, 69217200
tz.transition 1972, 10, :o3, 87969600
tz.transition 1973, 3, :o2, 100666800
tz.transition 1973, 9, :o3, 118209600
tz.transition 1974, 3, :o2, 132116400
tz.transition 1974, 10, :o3, 150868800
tz.transition 1975, 3, :o2, 163566000
tz.transition 1975, 10, :o3, 182318400
tz.transition 1976, 3, :o2, 195620400
tz.transition 1976, 10, :o3, 213768000
tz.transition 1977, 3, :o2, 227070000
tz.transition 1977, 10, :o3, 245217600
tz.transition 1978, 3, :o2, 258519600
tz.transition 1978, 10, :o3, 277272000
tz.transition 1979, 3, :o2, 289969200
tz.transition 1979, 10, :o3, 308721600
tz.transition 1980, 3, :o2, 321418800
tz.transition 1980, 10, :o3, 340171200
tz.transition 1981, 3, :o2, 353473200
tz.transition 1981, 10, :o3, 371620800
tz.transition 1982, 3, :o4, 384922800
tz.transition 1982, 10, :o5, 403070400
tz.transition 1983, 3, :o4, 416372400
tz.transition 1983, 10, :o5, 434520000
tz.transition 1984, 3, :o4, 447822000
tz.transition 1984, 10, :o5, 466574400
tz.transition 1985, 3, :o4, 479271600
tz.transition 1985, 10, :o5, 498024000
tz.transition 1986, 3, :o4, 510721200
tz.transition 1986, 10, :o5, 529473600
tz.transition 1987, 4, :o4, 545194800
tz.transition 1987, 10, :o5, 560923200
tz.transition 1988, 3, :o4, 574225200
tz.transition 1988, 10, :o5, 592372800
tz.transition 1989, 3, :o4, 605674800
tz.transition 1989, 10, :o5, 624427200
tz.transition 1990, 3, :o4, 637124400
tz.transition 1990, 9, :o5, 653457600
tz.transition 1991, 3, :o4, 668574000
tz.transition 1991, 10, :o5, 687326400
tz.transition 1992, 3, :o4, 700628400
tz.transition 1992, 10, :o5, 718776000
tz.transition 1993, 3, :o4, 732078000
tz.transition 1993, 10, :o5, 750225600
tz.transition 1994, 3, :o4, 763527600
tz.transition 1994, 10, :o5, 781675200
tz.transition 1995, 3, :o4, 794977200
tz.transition 1995, 10, :o5, 813729600
tz.transition 1996, 3, :o4, 826426800
tz.transition 1996, 10, :o5, 845179200
tz.transition 1997, 3, :o4, 859690800
tz.transition 1997, 10, :o5, 876628800
tz.transition 1998, 3, :o4, 889930800
tz.transition 1998, 9, :o5, 906868800
tz.transition 1999, 4, :o4, 923194800
tz.transition 1999, 10, :o5, 939528000
tz.transition 2000, 3, :o4, 952830000
tz.transition 2000, 10, :o5, 971582400
tz.transition 2001, 3, :o4, 984279600
tz.transition 2001, 10, :o5, 1003032000
tz.transition 2002, 3, :o4, 1015729200
tz.transition 2002, 10, :o5, 1034481600
tz.transition 2003, 3, :o4, 1047178800
tz.transition 2003, 10, :o5, 1065931200
tz.transition 2004, 3, :o4, 1079233200
tz.transition 2004, 10, :o5, 1097380800
tz.transition 2005, 3, :o4, 1110682800
tz.transition 2005, 10, :o5, 1128830400
tz.transition 2006, 3, :o4, 1142132400
tz.transition 2006, 10, :o5, 1160884800
tz.transition 2007, 3, :o4, 1173582000
tz.transition 2007, 10, :o5, 1192334400
tz.transition 2008, 3, :o4, 1206846000
tz.transition 2008, 10, :o5, 1223784000
tz.transition 2009, 3, :o4, 1237086000
tz.transition 2009, 10, :o5, 1255233600
tz.transition 2010, 4, :o4, 1270350000
tz.transition 2010, 10, :o5, 1286683200
tz.transition 2011, 5, :o4, 1304823600
tz.transition 2011, 8, :o5, 1313899200
tz.transition 2012, 4, :o4, 1335668400
tz.transition 2012, 9, :o5, 1346558400
tz.transition 2013, 4, :o4, 1367118000
tz.transition 2013, 9, :o5, 1378612800
tz.transition 2014, 4, :o4, 1398567600
tz.transition 2014, 9, :o5, 1410062400
tz.transition 2016, 5, :o4, 1463281200
tz.transition 2016, 8, :o5, 1471147200
tz.transition 2017, 5, :o4, 1494730800
tz.transition 2017, 8, :o5, 1502596800
tz.transition 2018, 5, :o4, 1526180400
tz.transition 2018, 8, :o5, 1534046400
tz.transition 2019, 4, :o4, 1554606000
tz.transition 2019, 9, :o5, 1567915200
tz.transition 2020, 4, :o4, 1586055600
tz.transition 2020, 9, :o5, 1599364800
tz.transition 2021, 4, :o4, 1617505200
tz.transition 2021, 9, :o5, 1630814400
tz.transition 2022, 4, :o4, 1648954800
tz.transition 2022, 9, :o5, 1662868800
tz.transition 2023, 4, :o4, 1680404400
tz.transition 2023, 9, :o5, 1693713600
tz.transition 2024, 4, :o4, 1712458800
tz.transition 2024, 9, :o5, 1725768000
tz.transition 2025, 4, :o4, 1743908400
tz.transition 2025, 9, :o5, 1757217600
tz.transition 2026, 4, :o4, 1775358000
tz.transition 2026, 9, :o5, 1788667200
tz.transition 2027, 4, :o4, 1806807600
tz.transition 2027, 9, :o5, 1820116800
tz.transition 2028, 4, :o4, 1838257200
tz.transition 2028, 9, :o5, 1851566400
tz.transition 2029, 4, :o4, 1870311600
tz.transition 2029, 9, :o5, 1883016000
tz.transition 2030, 4, :o4, 1901761200
tz.transition 2030, 9, :o5, 1915070400
tz.transition 2031, 4, :o4, 1933210800
tz.transition 2031, 9, :o5, 1946520000
tz.transition 2032, 4, :o4, 1964660400
tz.transition 2032, 9, :o5, 1977969600
tz.transition 2033, 4, :o4, 1996110000
tz.transition 2033, 9, :o5, 2009419200
tz.transition 2034, 4, :o4, 2027559600
tz.transition 2034, 9, :o5, 2040868800
tz.transition 2035, 4, :o4, 2059614000
tz.transition 2035, 9, :o5, 2072318400
tz.transition 2036, 4, :o4, 2091063600
tz.transition 2036, 9, :o5, 2104372800
tz.transition 2037, 4, :o4, 2122513200
tz.transition 2037, 9, :o5, 2135822400
tz.transition 2038, 4, :o4, 2153962800, 19724141, 8
tz.transition 2038, 9, :o5, 2167272000, 7397015, 3
tz.transition 2039, 4, :o4, 2185412400, 19727053, 8
tz.transition 2039, 9, :o5, 2198721600, 7398107, 3
tz.transition 2040, 4, :o4, 2217466800, 19730021, 8
tz.transition 2040, 9, :o5, 2230171200, 7399199, 3
tz.transition 2041, 4, :o4, 2248916400, 19732933, 8
tz.transition 2041, 9, :o5, 2262225600, 7400312, 3
tz.transition 2042, 4, :o4, 2280366000, 19735845, 8
tz.transition 2042, 9, :o5, 2293675200, 7401404, 3
tz.transition 2043, 4, :o4, 2311815600, 19738757, 8
tz.transition 2043, 9, :o5, 2325124800, 7402496, 3
tz.transition 2044, 4, :o4, 2343265200, 19741669, 8
tz.transition 2044, 9, :o5, 2356574400, 7403588, 3
tz.transition 2045, 4, :o4, 2374714800, 19744581, 8
tz.transition 2045, 9, :o5, 2388024000, 7404680, 3
tz.transition 2046, 4, :o4, 2406769200, 19747549, 8
tz.transition 2046, 9, :o5, 2419473600, 7405772, 3
tz.transition 2047, 4, :o4, 2438218800, 19750461, 8
tz.transition 2047, 9, :o5, 2451528000, 7406885, 3
tz.transition 2048, 4, :o4, 2469668400, 19753373, 8
tz.transition 2048, 9, :o5, 2482977600, 7407977, 3
tz.transition 2049, 4, :o4, 2501118000, 19756285, 8
tz.transition 2049, 9, :o5, 2514427200, 7409069, 3
tz.transition 2050, 4, :o4, 2532567600, 19759197, 8
tz.transition 2050, 9, :o5, 2545876800, 7410161, 3
tz.transition 2051, 4, :o4, 2564017200, 19762109, 8
tz.transition 2051, 9, :o5, 2577326400, 7411253, 3
tz.transition 2052, 4, :o4, 2596071600, 19765077, 8
tz.transition 2052, 9, :o5, 2609380800, 7412366, 3
tz.transition 2053, 4, :o4, 2627521200, 19767989, 8
tz.transition 2053, 9, :o5, 2640830400, 7413458, 3
tz.transition 2054, 4, :o4, 2658970800, 19770901, 8
tz.transition 2054, 9, :o5, 2672280000, 7414550, 3
tz.transition 2055, 4, :o4, 2690420400, 19773813, 8
tz.transition 2055, 9, :o5, 2703729600, 7415642, 3
tz.transition 2056, 4, :o4, 2721870000, 19776725, 8
tz.transition 2056, 9, :o5, 2735179200, 7416734, 3
tz.transition 2057, 4, :o4, 2753924400, 19779693, 8
tz.transition 2057, 9, :o5, 2766628800, 7417826, 3
tz.transition 2058, 4, :o4, 2785374000, 19782605, 8
tz.transition 2058, 9, :o5, 2798683200, 7418939, 3
tz.transition 2059, 4, :o4, 2816823600, 19785517, 8
tz.transition 2059, 9, :o5, 2830132800, 7420031, 3
tz.transition 2060, 4, :o4, 2848273200, 19788429, 8
tz.transition 2060, 9, :o5, 2861582400, 7421123, 3
tz.transition 2061, 4, :o4, 2879722800, 19791341, 8
tz.transition 2061, 9, :o5, 2893032000, 7422215, 3
tz.transition 2062, 4, :o4, 2911172400, 19794253, 8
tz.transition 2062, 9, :o5, 2924481600, 7423307, 3
tz.transition 2063, 4, :o4, 2943226800, 19797221, 8
tz.transition 2063, 9, :o5, 2955931200, 7424399, 3
tz.transition 2064, 4, :o4, 2974676400, 19800133, 8
tz.transition 2064, 9, :o5, 2987985600, 7425512, 3
tz.transition 2065, 4, :o4, 3006126000, 19803045, 8
tz.transition 2065, 9, :o5, 3019435200, 7426604, 3
tz.transition 2066, 4, :o4, 3037575600, 19805957, 8
tz.transition 2066, 9, :o5, 3050884800, 7427696, 3
tz.transition 2067, 4, :o4, 3069025200, 19808869, 8
tz.transition 2067, 9, :o5, 3082334400, 7428788, 3
tz.transition 2068, 4, :o4, 3101079600, 19811837, 8
tz.transition 2068, 9, :o5, 3113784000, 7429880, 3
tz.transition 2069, 4, :o4, 3132529200, 19814749, 8
tz.transition 2069, 9, :o5, 3145838400, 7430993, 3
tz.transition 2070, 4, :o4, 3163978800, 19817661, 8
tz.transition 2070, 9, :o5, 3177288000, 7432085, 3
tz.transition 2071, 4, :o4, 3195428400, 19820573, 8
tz.transition 2071, 9, :o5, 3208737600, 7433177, 3
tz.transition 2072, 4, :o4, 3226878000, 19823485, 8
tz.transition 2072, 9, :o5, 3240187200, 7434269, 3
tz.transition 2073, 4, :o4, 3258327600, 19826397, 8
tz.transition 2073, 9, :o5, 3271636800, 7435361, 3
tz.transition 2074, 4, :o4, 3290382000, 19829365, 8
tz.transition 2074, 9, :o5, 3303086400, 7436453, 3
tz.transition 2075, 4, :o4, 3321831600, 19832277, 8
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Noumea.rb | lib/tzinfo/data/definitions/Pacific/Noumea.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Noumea
include TimezoneDefinition
timezone 'Pacific/Noumea' do |tz|
tz.offset :o0, 39948, 0, :LMT
tz.offset :o1, 39600, 0, :'+11'
tz.offset :o2, 39600, 3600, :'+12'
tz.transition 1912, 1, :o1, -1829387148, 17419781071, 7200
tz.transition 1977, 12, :o2, 250002000
tz.transition 1978, 2, :o1, 257342400
tz.transition 1978, 12, :o2, 281451600
tz.transition 1979, 2, :o1, 288878400
tz.transition 1996, 11, :o2, 849366000
tz.transition 1997, 3, :o1, 857228400
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Gambier.rb | lib/tzinfo/data/definitions/Pacific/Gambier.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Gambier
include TimezoneDefinition
timezone 'Pacific/Gambier' do |tz|
tz.offset :o0, -32388, 0, :LMT
tz.offset :o1, -32400, 0, :'-09'
tz.transition 1912, 10, :o1, -1806678012, 17421673499, 7200
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Funafuti.rb | lib/tzinfo/data/definitions/Pacific/Funafuti.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Funafuti
include TimezoneDefinition
linked_timezone 'Pacific/Funafuti', 'Pacific/Tarawa'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Majuro.rb | lib/tzinfo/data/definitions/Pacific/Majuro.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Majuro
include TimezoneDefinition
linked_timezone 'Pacific/Majuro', 'Pacific/Tarawa'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Johnston.rb | lib/tzinfo/data/definitions/Pacific/Johnston.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Johnston
include TimezoneDefinition
linked_timezone 'Pacific/Johnston', 'Pacific/Honolulu'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Tarawa.rb | lib/tzinfo/data/definitions/Pacific/Tarawa.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Tarawa
include TimezoneDefinition
timezone 'Pacific/Tarawa' do |tz|
tz.offset :o0, 41524, 0, :LMT
tz.offset :o1, 43200, 0, :'+12'
tz.transition 1900, 12, :o1, -2177494324, 52172316419, 21600
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Truk.rb | lib/tzinfo/data/definitions/Pacific/Truk.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Truk
include TimezoneDefinition
linked_timezone 'Pacific/Truk', 'Pacific/Port_Moresby'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Marquesas.rb | lib/tzinfo/data/definitions/Pacific/Marquesas.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Marquesas
include TimezoneDefinition
timezone 'Pacific/Marquesas' do |tz|
tz.offset :o0, -33480, 0, :LMT
tz.offset :o1, -34200, 0, :'-0930'
tz.transition 1912, 10, :o1, -1806676920, 193574151, 80
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Wake.rb | lib/tzinfo/data/definitions/Pacific/Wake.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Wake
include TimezoneDefinition
linked_timezone 'Pacific/Wake', 'Pacific/Tarawa'
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Chatham.rb | lib/tzinfo/data/definitions/Pacific/Chatham.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Chatham
include TimezoneDefinition
timezone 'Pacific/Chatham' do |tz|
tz.offset :o0, 44028, 0, :LMT
tz.offset :o1, 44100, 0, :'+1215'
tz.offset :o2, 45900, 0, :'+1245'
tz.offset :o3, 45900, 3600, :'+1345'
tz.transition 1868, 11, :o1, -3192437628, 5768731177, 2400
tz.transition 1945, 12, :o2, -757426500, 233454815, 96
tz.transition 1974, 11, :o3, 152632800
tz.transition 1975, 2, :o2, 162309600
tz.transition 1975, 10, :o3, 183477600
tz.transition 1976, 3, :o2, 194968800
tz.transition 1976, 10, :o3, 215532000
tz.transition 1977, 3, :o2, 226418400
tz.transition 1977, 10, :o3, 246981600
tz.transition 1978, 3, :o2, 257868000
tz.transition 1978, 10, :o3, 278431200
tz.transition 1979, 3, :o2, 289317600
tz.transition 1979, 10, :o3, 309880800
tz.transition 1980, 3, :o2, 320767200
tz.transition 1980, 10, :o3, 341330400
tz.transition 1981, 2, :o2, 352216800
tz.transition 1981, 10, :o3, 372780000
tz.transition 1982, 3, :o2, 384271200
tz.transition 1982, 10, :o3, 404834400
tz.transition 1983, 3, :o2, 415720800
tz.transition 1983, 10, :o3, 436284000
tz.transition 1984, 3, :o2, 447170400
tz.transition 1984, 10, :o3, 467733600
tz.transition 1985, 3, :o2, 478620000
tz.transition 1985, 10, :o3, 499183200
tz.transition 1986, 3, :o2, 510069600
tz.transition 1986, 10, :o3, 530632800
tz.transition 1987, 2, :o2, 541519200
tz.transition 1987, 10, :o3, 562082400
tz.transition 1988, 3, :o2, 573573600
tz.transition 1988, 10, :o3, 594136800
tz.transition 1989, 3, :o2, 605023200
tz.transition 1989, 10, :o3, 623772000
tz.transition 1990, 3, :o2, 637682400
tz.transition 1990, 10, :o3, 655221600
tz.transition 1991, 3, :o2, 669132000
tz.transition 1991, 10, :o3, 686671200
tz.transition 1992, 3, :o2, 700581600
tz.transition 1992, 10, :o3, 718120800
tz.transition 1993, 3, :o2, 732636000
tz.transition 1993, 10, :o3, 749570400
tz.transition 1994, 3, :o2, 764085600
tz.transition 1994, 10, :o3, 781020000
tz.transition 1995, 3, :o2, 795535200
tz.transition 1995, 9, :o3, 812469600
tz.transition 1996, 3, :o2, 826984800
tz.transition 1996, 10, :o3, 844524000
tz.transition 1997, 3, :o2, 858434400
tz.transition 1997, 10, :o3, 875973600
tz.transition 1998, 3, :o2, 889884000
tz.transition 1998, 10, :o3, 907423200
tz.transition 1999, 3, :o2, 921938400
tz.transition 1999, 10, :o3, 938872800
tz.transition 2000, 3, :o2, 953388000
tz.transition 2000, 9, :o3, 970322400
tz.transition 2001, 3, :o2, 984837600
tz.transition 2001, 10, :o3, 1002376800
tz.transition 2002, 3, :o2, 1016287200
tz.transition 2002, 10, :o3, 1033826400
tz.transition 2003, 3, :o2, 1047736800
tz.transition 2003, 10, :o3, 1065276000
tz.transition 2004, 3, :o2, 1079791200
tz.transition 2004, 10, :o3, 1096725600
tz.transition 2005, 3, :o2, 1111240800
tz.transition 2005, 10, :o3, 1128175200
tz.transition 2006, 3, :o2, 1142690400
tz.transition 2006, 9, :o3, 1159624800
tz.transition 2007, 3, :o2, 1174140000
tz.transition 2007, 9, :o3, 1191074400
tz.transition 2008, 4, :o2, 1207404000
tz.transition 2008, 9, :o3, 1222524000
tz.transition 2009, 4, :o2, 1238853600
tz.transition 2009, 9, :o3, 1253973600
tz.transition 2010, 4, :o2, 1270303200
tz.transition 2010, 9, :o3, 1285423200
tz.transition 2011, 4, :o2, 1301752800
tz.transition 2011, 9, :o3, 1316872800
tz.transition 2012, 3, :o2, 1333202400
tz.transition 2012, 9, :o3, 1348927200
tz.transition 2013, 4, :o2, 1365256800
tz.transition 2013, 9, :o3, 1380376800
tz.transition 2014, 4, :o2, 1396706400
tz.transition 2014, 9, :o3, 1411826400
tz.transition 2015, 4, :o2, 1428156000
tz.transition 2015, 9, :o3, 1443276000
tz.transition 2016, 4, :o2, 1459605600
tz.transition 2016, 9, :o3, 1474725600
tz.transition 2017, 4, :o2, 1491055200
tz.transition 2017, 9, :o3, 1506175200
tz.transition 2018, 3, :o2, 1522504800
tz.transition 2018, 9, :o3, 1538229600
tz.transition 2019, 4, :o2, 1554559200
tz.transition 2019, 9, :o3, 1569679200
tz.transition 2020, 4, :o2, 1586008800
tz.transition 2020, 9, :o3, 1601128800
tz.transition 2021, 4, :o2, 1617458400
tz.transition 2021, 9, :o3, 1632578400
tz.transition 2022, 4, :o2, 1648908000
tz.transition 2022, 9, :o3, 1664028000
tz.transition 2023, 4, :o2, 1680357600
tz.transition 2023, 9, :o3, 1695477600
tz.transition 2024, 4, :o2, 1712412000
tz.transition 2024, 9, :o3, 1727532000
tz.transition 2025, 4, :o2, 1743861600
tz.transition 2025, 9, :o3, 1758981600
tz.transition 2026, 4, :o2, 1775311200
tz.transition 2026, 9, :o3, 1790431200
tz.transition 2027, 4, :o2, 1806760800
tz.transition 2027, 9, :o3, 1821880800
tz.transition 2028, 4, :o2, 1838210400
tz.transition 2028, 9, :o3, 1853330400
tz.transition 2029, 3, :o2, 1869660000
tz.transition 2029, 9, :o3, 1885384800
tz.transition 2030, 4, :o2, 1901714400
tz.transition 2030, 9, :o3, 1916834400
tz.transition 2031, 4, :o2, 1933164000
tz.transition 2031, 9, :o3, 1948284000
tz.transition 2032, 4, :o2, 1964613600
tz.transition 2032, 9, :o3, 1979733600
tz.transition 2033, 4, :o2, 1996063200
tz.transition 2033, 9, :o3, 2011183200
tz.transition 2034, 4, :o2, 2027512800
tz.transition 2034, 9, :o3, 2042632800
tz.transition 2035, 3, :o2, 2058962400
tz.transition 2035, 9, :o3, 2074687200
tz.transition 2036, 4, :o2, 2091016800
tz.transition 2036, 9, :o3, 2106136800
tz.transition 2037, 4, :o2, 2122466400
tz.transition 2037, 9, :o3, 2137586400
tz.transition 2038, 4, :o2, 2153916000, 29586205, 12
tz.transition 2038, 9, :o3, 2169036000, 29588305, 12
tz.transition 2039, 4, :o2, 2185365600, 29590573, 12
tz.transition 2039, 9, :o3, 2200485600, 29592673, 12
tz.transition 2040, 3, :o2, 2216815200, 29594941, 12
tz.transition 2040, 9, :o3, 2232540000, 29597125, 12
tz.transition 2041, 4, :o2, 2248869600, 29599393, 12
tz.transition 2041, 9, :o3, 2263989600, 29601493, 12
tz.transition 2042, 4, :o2, 2280319200, 29603761, 12
tz.transition 2042, 9, :o3, 2295439200, 29605861, 12
tz.transition 2043, 4, :o2, 2311768800, 29608129, 12
tz.transition 2043, 9, :o3, 2326888800, 29610229, 12
tz.transition 2044, 4, :o2, 2343218400, 29612497, 12
tz.transition 2044, 9, :o3, 2358338400, 29614597, 12
tz.transition 2045, 4, :o2, 2374668000, 29616865, 12
tz.transition 2045, 9, :o3, 2389788000, 29618965, 12
tz.transition 2046, 3, :o2, 2406117600, 29621233, 12
tz.transition 2046, 9, :o3, 2421842400, 29623417, 12
tz.transition 2047, 4, :o2, 2438172000, 29625685, 12
tz.transition 2047, 9, :o3, 2453292000, 29627785, 12
tz.transition 2048, 4, :o2, 2469621600, 29630053, 12
tz.transition 2048, 9, :o3, 2484741600, 29632153, 12
tz.transition 2049, 4, :o2, 2501071200, 29634421, 12
tz.transition 2049, 9, :o3, 2516191200, 29636521, 12
tz.transition 2050, 4, :o2, 2532520800, 29638789, 12
tz.transition 2050, 9, :o3, 2547640800, 29640889, 12
tz.transition 2051, 4, :o2, 2563970400, 29643157, 12
tz.transition 2051, 9, :o3, 2579090400, 29645257, 12
tz.transition 2052, 4, :o2, 2596024800, 29647609, 12
tz.transition 2052, 9, :o3, 2611144800, 29649709, 12
tz.transition 2053, 4, :o2, 2627474400, 29651977, 12
tz.transition 2053, 9, :o3, 2642594400, 29654077, 12
tz.transition 2054, 4, :o2, 2658924000, 29656345, 12
tz.transition 2054, 9, :o3, 2674044000, 29658445, 12
tz.transition 2055, 4, :o2, 2690373600, 29660713, 12
tz.transition 2055, 9, :o3, 2705493600, 29662813, 12
tz.transition 2056, 4, :o2, 2721823200, 29665081, 12
tz.transition 2056, 9, :o3, 2736943200, 29667181, 12
tz.transition 2057, 3, :o2, 2753272800, 29669449, 12
tz.transition 2057, 9, :o3, 2768997600, 29671633, 12
tz.transition 2058, 4, :o2, 2785327200, 29673901, 12
tz.transition 2058, 9, :o3, 2800447200, 29676001, 12
tz.transition 2059, 4, :o2, 2816776800, 29678269, 12
tz.transition 2059, 9, :o3, 2831896800, 29680369, 12
tz.transition 2060, 4, :o2, 2848226400, 29682637, 12
tz.transition 2060, 9, :o3, 2863346400, 29684737, 12
tz.transition 2061, 4, :o2, 2879676000, 29687005, 12
tz.transition 2061, 9, :o3, 2894796000, 29689105, 12
tz.transition 2062, 4, :o2, 2911125600, 29691373, 12
tz.transition 2062, 9, :o3, 2926245600, 29693473, 12
tz.transition 2063, 3, :o2, 2942575200, 29695741, 12
tz.transition 2063, 9, :o3, 2958300000, 29697925, 12
tz.transition 2064, 4, :o2, 2974629600, 29700193, 12
tz.transition 2064, 9, :o3, 2989749600, 29702293, 12
tz.transition 2065, 4, :o2, 3006079200, 29704561, 12
tz.transition 2065, 9, :o3, 3021199200, 29706661, 12
tz.transition 2066, 4, :o2, 3037528800, 29708929, 12
tz.transition 2066, 9, :o3, 3052648800, 29711029, 12
tz.transition 2067, 4, :o2, 3068978400, 29713297, 12
tz.transition 2067, 9, :o3, 3084098400, 29715397, 12
tz.transition 2068, 3, :o2, 3100428000, 29717665, 12
tz.transition 2068, 9, :o3, 3116152800, 29719849, 12
tz.transition 2069, 4, :o2, 3132482400, 29722117, 12
tz.transition 2069, 9, :o3, 3147602400, 29724217, 12
tz.transition 2070, 4, :o2, 3163932000, 29726485, 12
tz.transition 2070, 9, :o3, 3179052000, 29728585, 12
tz.transition 2071, 4, :o2, 3195381600, 29730853, 12
tz.transition 2071, 9, :o3, 3210501600, 29732953, 12
tz.transition 2072, 4, :o2, 3226831200, 29735221, 12
tz.transition 2072, 9, :o3, 3241951200, 29737321, 12
tz.transition 2073, 4, :o2, 3258280800, 29739589, 12
tz.transition 2073, 9, :o3, 3273400800, 29741689, 12
tz.transition 2074, 3, :o2, 3289730400, 29743957, 12
tz.transition 2074, 9, :o3, 3305455200, 29746141, 12
tz.transition 2075, 4, :o2, 3321784800, 29748409, 12
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Kanton.rb | lib/tzinfo/data/definitions/Pacific/Kanton.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Kanton
include TimezoneDefinition
timezone 'Pacific/Kanton' do |tz|
tz.offset :o0, 0, 0, :'-00'
tz.offset :o1, -43200, 0, :'-12'
tz.offset :o2, -39600, 0, :'-11'
tz.offset :o3, 46800, 0, :'+13'
tz.transition 1937, 8, :o1, -1020470400, 4857553, 2
tz.transition 1979, 10, :o2, 307627200
tz.transition 1994, 12, :o3, 788871600
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Bougainville.rb | lib/tzinfo/data/definitions/Pacific/Bougainville.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Bougainville
include TimezoneDefinition
timezone 'Pacific/Bougainville' do |tz|
tz.offset :o0, 37336, 0, :LMT
tz.offset :o1, 35312, 0, :PMMT
tz.offset :o2, 36000, 0, :'+10'
tz.offset :o3, 32400, 0, :'+09'
tz.offset :o4, 39600, 0, :'+11'
tz.transition 1879, 12, :o1, -2840178136, 26003322733, 10800
tz.transition 1894, 12, :o2, -2366790512, 13031248093, 5400
tz.transition 1942, 6, :o3, -868010400, 29166493, 12
tz.transition 1945, 8, :o2, -768906000, 19453505, 8
tz.transition 2014, 12, :o4, 1419696000
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Norfolk.rb | lib/tzinfo/data/definitions/Pacific/Norfolk.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Norfolk
include TimezoneDefinition
timezone 'Pacific/Norfolk' do |tz|
tz.offset :o0, 40312, 0, :LMT
tz.offset :o1, 40320, 0, :'+1112'
tz.offset :o2, 41400, 0, :'+1130'
tz.offset :o3, 41400, 3600, :'+1230'
tz.offset :o4, 39600, 0, :'+11'
tz.offset :o5, 39600, 3600, :'+12'
tz.transition 1900, 12, :o1, -2177493112, 26086158361, 10800
tz.transition 1950, 12, :o2, -599656320, 73009411, 30
tz.transition 1974, 10, :o3, 152029800
tz.transition 1975, 3, :o2, 162916200
tz.transition 2015, 10, :o4, 1443882600
tz.transition 2019, 10, :o5, 1570287600
tz.transition 2020, 4, :o4, 1586012400
tz.transition 2020, 10, :o5, 1601737200
tz.transition 2021, 4, :o4, 1617462000
tz.transition 2021, 10, :o5, 1633186800
tz.transition 2022, 4, :o4, 1648911600
tz.transition 2022, 10, :o5, 1664636400
tz.transition 2023, 4, :o4, 1680361200
tz.transition 2023, 9, :o5, 1696086000
tz.transition 2024, 4, :o4, 1712415600
tz.transition 2024, 10, :o5, 1728140400
tz.transition 2025, 4, :o4, 1743865200
tz.transition 2025, 10, :o5, 1759590000
tz.transition 2026, 4, :o4, 1775314800
tz.transition 2026, 10, :o5, 1791039600
tz.transition 2027, 4, :o4, 1806764400
tz.transition 2027, 10, :o5, 1822489200
tz.transition 2028, 4, :o4, 1838214000
tz.transition 2028, 9, :o5, 1853938800
tz.transition 2029, 3, :o4, 1869663600
tz.transition 2029, 10, :o5, 1885993200
tz.transition 2030, 4, :o4, 1901718000
tz.transition 2030, 10, :o5, 1917442800
tz.transition 2031, 4, :o4, 1933167600
tz.transition 2031, 10, :o5, 1948892400
tz.transition 2032, 4, :o4, 1964617200
tz.transition 2032, 10, :o5, 1980342000
tz.transition 2033, 4, :o4, 1996066800
tz.transition 2033, 10, :o5, 2011791600
tz.transition 2034, 4, :o4, 2027516400
tz.transition 2034, 9, :o5, 2043241200
tz.transition 2035, 3, :o4, 2058966000
tz.transition 2035, 10, :o5, 2075295600
tz.transition 2036, 4, :o4, 2091020400
tz.transition 2036, 10, :o5, 2106745200
tz.transition 2037, 4, :o4, 2122470000
tz.transition 2037, 10, :o5, 2138194800
tz.transition 2038, 4, :o4, 2153919600, 19724137, 8
tz.transition 2038, 10, :o5, 2169644400, 19725593, 8
tz.transition 2039, 4, :o4, 2185369200, 19727049, 8
tz.transition 2039, 10, :o5, 2201094000, 19728505, 8
tz.transition 2040, 3, :o4, 2216818800, 19729961, 8
tz.transition 2040, 10, :o5, 2233148400, 19731473, 8
tz.transition 2041, 4, :o4, 2248873200, 19732929, 8
tz.transition 2041, 10, :o5, 2264598000, 19734385, 8
tz.transition 2042, 4, :o4, 2280322800, 19735841, 8
tz.transition 2042, 10, :o5, 2296047600, 19737297, 8
tz.transition 2043, 4, :o4, 2311772400, 19738753, 8
tz.transition 2043, 10, :o5, 2327497200, 19740209, 8
tz.transition 2044, 4, :o4, 2343222000, 19741665, 8
tz.transition 2044, 10, :o5, 2358946800, 19743121, 8
tz.transition 2045, 4, :o4, 2374671600, 19744577, 8
tz.transition 2045, 9, :o5, 2390396400, 19746033, 8
tz.transition 2046, 3, :o4, 2406121200, 19747489, 8
tz.transition 2046, 10, :o5, 2422450800, 19749001, 8
tz.transition 2047, 4, :o4, 2438175600, 19750457, 8
tz.transition 2047, 10, :o5, 2453900400, 19751913, 8
tz.transition 2048, 4, :o4, 2469625200, 19753369, 8
tz.transition 2048, 10, :o5, 2485350000, 19754825, 8
tz.transition 2049, 4, :o4, 2501074800, 19756281, 8
tz.transition 2049, 10, :o5, 2516799600, 19757737, 8
tz.transition 2050, 4, :o4, 2532524400, 19759193, 8
tz.transition 2050, 10, :o5, 2548249200, 19760649, 8
tz.transition 2051, 4, :o4, 2563974000, 19762105, 8
tz.transition 2051, 9, :o5, 2579698800, 19763561, 8
tz.transition 2052, 4, :o4, 2596028400, 19765073, 8
tz.transition 2052, 10, :o5, 2611753200, 19766529, 8
tz.transition 2053, 4, :o4, 2627478000, 19767985, 8
tz.transition 2053, 10, :o5, 2643202800, 19769441, 8
tz.transition 2054, 4, :o4, 2658927600, 19770897, 8
tz.transition 2054, 10, :o5, 2674652400, 19772353, 8
tz.transition 2055, 4, :o4, 2690377200, 19773809, 8
tz.transition 2055, 10, :o5, 2706102000, 19775265, 8
tz.transition 2056, 4, :o4, 2721826800, 19776721, 8
tz.transition 2056, 9, :o5, 2737551600, 19778177, 8
tz.transition 2057, 3, :o4, 2753276400, 19779633, 8
tz.transition 2057, 10, :o5, 2769606000, 19781145, 8
tz.transition 2058, 4, :o4, 2785330800, 19782601, 8
tz.transition 2058, 10, :o5, 2801055600, 19784057, 8
tz.transition 2059, 4, :o4, 2816780400, 19785513, 8
tz.transition 2059, 10, :o5, 2832505200, 19786969, 8
tz.transition 2060, 4, :o4, 2848230000, 19788425, 8
tz.transition 2060, 10, :o5, 2863954800, 19789881, 8
tz.transition 2061, 4, :o4, 2879679600, 19791337, 8
tz.transition 2061, 10, :o5, 2895404400, 19792793, 8
tz.transition 2062, 4, :o4, 2911129200, 19794249, 8
tz.transition 2062, 9, :o5, 2926854000, 19795705, 8
tz.transition 2063, 3, :o4, 2942578800, 19797161, 8
tz.transition 2063, 10, :o5, 2958908400, 19798673, 8
tz.transition 2064, 4, :o4, 2974633200, 19800129, 8
tz.transition 2064, 10, :o5, 2990358000, 19801585, 8
tz.transition 2065, 4, :o4, 3006082800, 19803041, 8
tz.transition 2065, 10, :o5, 3021807600, 19804497, 8
tz.transition 2066, 4, :o4, 3037532400, 19805953, 8
tz.transition 2066, 10, :o5, 3053257200, 19807409, 8
tz.transition 2067, 4, :o4, 3068982000, 19808865, 8
tz.transition 2067, 10, :o5, 3084706800, 19810321, 8
tz.transition 2068, 3, :o4, 3100431600, 19811777, 8
tz.transition 2068, 10, :o5, 3116761200, 19813289, 8
tz.transition 2069, 4, :o4, 3132486000, 19814745, 8
tz.transition 2069, 10, :o5, 3148210800, 19816201, 8
tz.transition 2070, 4, :o4, 3163935600, 19817657, 8
tz.transition 2070, 10, :o5, 3179660400, 19819113, 8
tz.transition 2071, 4, :o4, 3195385200, 19820569, 8
tz.transition 2071, 10, :o5, 3211110000, 19822025, 8
tz.transition 2072, 4, :o4, 3226834800, 19823481, 8
tz.transition 2072, 10, :o5, 3242559600, 19824937, 8
tz.transition 2073, 4, :o4, 3258284400, 19826393, 8
tz.transition 2073, 9, :o5, 3274009200, 19827849, 8
tz.transition 2074, 3, :o4, 3289734000, 19829305, 8
tz.transition 2074, 10, :o5, 3306063600, 19830817, 8
tz.transition 2075, 4, :o4, 3321788400, 19832273, 8
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Pago_Pago.rb | lib/tzinfo/data/definitions/Pacific/Pago_Pago.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Pago_Pago
include TimezoneDefinition
timezone 'Pacific/Pago_Pago' do |tz|
tz.offset :o0, 45432, 0, :LMT
tz.offset :o1, -40968, 0, :LMT
tz.offset :o2, -39600, 0, :SST
tz.transition 1892, 7, :o1, -2445424632, 2894740769, 1200
tz.transition 1911, 1, :o2, -1861879032, 2902845569, 1200
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Kiritimati.rb | lib/tzinfo/data/definitions/Pacific/Kiritimati.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Kiritimati
include TimezoneDefinition
timezone 'Pacific/Kiritimati' do |tz|
tz.offset :o0, -37760, 0, :LMT
tz.offset :o1, -38400, 0, :'-1040'
tz.offset :o2, -36000, 0, :'-10'
tz.offset :o3, 50400, 0, :'+14'
tz.transition 1901, 1, :o1, -2177415040, 652154203, 270
tz.transition 1979, 10, :o2, 307622400
tz.transition 1994, 12, :o3, 788868000
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Efate.rb | lib/tzinfo/data/definitions/Pacific/Efate.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Efate
include TimezoneDefinition
timezone 'Pacific/Efate' do |tz|
tz.offset :o0, 40396, 0, :LMT
tz.offset :o1, 39600, 0, :'+11'
tz.offset :o2, 39600, 3600, :'+12'
tz.transition 1912, 1, :o1, -1829387596, 52259343101, 21600
tz.transition 1973, 12, :o2, 125409600
tz.transition 1974, 3, :o1, 133876800
tz.transition 1983, 9, :o2, 433256400
tz.transition 1984, 3, :o1, 448977600
tz.transition 1984, 9, :o2, 464706000
tz.transition 1985, 3, :o1, 480427200
tz.transition 1985, 9, :o2, 496760400
tz.transition 1986, 3, :o1, 511876800
tz.transition 1986, 9, :o2, 528210000
tz.transition 1987, 3, :o1, 543931200
tz.transition 1987, 9, :o2, 559659600
tz.transition 1988, 3, :o1, 575380800
tz.transition 1988, 9, :o2, 591109200
tz.transition 1989, 3, :o1, 606830400
tz.transition 1989, 9, :o2, 622558800
tz.transition 1990, 3, :o1, 638280000
tz.transition 1990, 9, :o2, 654008400
tz.transition 1991, 3, :o1, 669729600
tz.transition 1991, 9, :o2, 686062800
tz.transition 1992, 1, :o1, 696340800
tz.transition 1992, 10, :o2, 719931600
tz.transition 1993, 1, :o1, 727790400
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Guam.rb | lib/tzinfo/data/definitions/Pacific/Guam.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Guam
include TimezoneDefinition
timezone 'Pacific/Guam' do |tz|
tz.offset :o0, -51660, 0, :LMT
tz.offset :o1, 34740, 0, :LMT
tz.offset :o2, 36000, 0, :GST
tz.offset :o3, 32400, 0, :'+09'
tz.offset :o4, 36000, 3600, :GDT
tz.offset :o5, 36000, 0, :ChST
tz.transition 1844, 12, :o1, -3944626740, 1149567407, 480
tz.transition 1900, 12, :o2, -2177487540, 1159384847, 480
tz.transition 1941, 12, :o3, -885549600, 29164057, 12
tz.transition 1944, 7, :o2, -802256400, 19450417, 8
tz.transition 1959, 6, :o4, -331891200, 14620477, 6
tz.transition 1961, 1, :o2, -281610000, 19498625, 8
tz.transition 1967, 8, :o4, -73728000, 14638405, 6
tz.transition 1969, 1, :o2, -29415540, 3513955741, 1440
tz.transition 1969, 6, :o4, -16704000, 14642365, 6
tz.transition 1969, 8, :o2, -10659600, 19523713, 8
tz.transition 1970, 4, :o4, 9907200
tz.transition 1970, 9, :o2, 21394800
tz.transition 1971, 4, :o4, 41356800
tz.transition 1971, 9, :o2, 52844400
tz.transition 1973, 12, :o4, 124819200
tz.transition 1974, 2, :o2, 130863600
tz.transition 1976, 5, :o4, 201888000
tz.transition 1976, 8, :o2, 209487660
tz.transition 1977, 4, :o4, 230659200
tz.transition 1977, 8, :o2, 241542000
tz.transition 2000, 12, :o5, 977493600
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Pacific/Nauru.rb | lib/tzinfo/data/definitions/Pacific/Nauru.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Pacific
module Nauru
include TimezoneDefinition
timezone 'Pacific/Nauru' do |tz|
tz.offset :o0, 40060, 0, :LMT
tz.offset :o1, 41400, 0, :'+1130'
tz.offset :o2, 32400, 0, :'+09'
tz.offset :o3, 43200, 0, :'+12'
tz.transition 1921, 1, :o1, -1545131260, 10466081437, 4320
tz.transition 1942, 8, :o2, -862918200, 116668801, 48
tz.transition 1945, 9, :o1, -767350800, 19453649, 8
tz.transition 1979, 2, :o3, 287418600
end
end
end
end
end
end
| ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.