temp/download/northamerica
temp/download/africa
temp/download/...
temp/zic/america/los_angeles
temp/zic/america/new_york
temp/zic/america/...
temp/zdump/america/los_angeles
temp/zdump/america/new_york
temp/zdump/america/...
// data/zdump/2014a.json
[
{
name : "America/Los_Angeles",
abbrs : ["PST", "PDT", "PST", "PDT", "PST", "PDT", "PST", "PDT", "PST", "PDT"],
offsets : [420, 480, 420, 480, 420, 480, 420, 480, 420, 480, 420, 480, 420, 480],
untils : [-134089073429, -134074893883, -13407683724, -134074372626, -134074937463, -134074937463]
},
{
name : "America/San_Francisco",
abbrs : ["PST", "PDT", "PST", "PDT", "PST", "PDT", "PST", "PDT", "PST", "PDT"],
offsets : [420, 480, 420, 480, 420, 480, 420, 480, 420, 480, 420, 480, 420, 480],
untils : [-134089073429, -134074893883, -13407683724, -134074372626, -134074937463, -134074937463]
},
...
]
Loop through all zones, and remove entries that have the same abbr and offset as the next entry.
data/unpacked/2014a.json
data/packed/2014a.json
tests/zones/america/los_angeles.js
tests/zones/america/new_york.js
tests/zones/...