Skip to content

Commit

Permalink
Import of CCTZ from GitHub.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 593889663
Change-Id: I589cd18922172d8aca99ddcc0d6f08a013bed9b4
  • Loading branch information
Abseil Team authored and copybara-github committed Dec 27, 2023
1 parent c13ee37 commit bd47468
Show file tree
Hide file tree
Showing 48 changed files with 329 additions and 30 deletions.
8 changes: 0 additions & 8 deletions absl/time/internal/cctz/src/tzfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@
** Information about time zone files.
*/

#ifndef TZDIR
#define TZDIR "/usr/share/zoneinfo" /* Time zone object file directory */
#endif /* !defined TZDIR */

#ifndef TZDEFAULT
#define TZDEFAULT "/etc/localtime"
#endif /* !defined TZDEFAULT */

#ifndef TZDEFRULES
#define TZDEFRULES "posixrules"
#endif /* !defined TZDEFRULES */
Expand Down
2 changes: 1 addition & 1 deletion absl/time/internal/cctz/testdata/README.zoneinfo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ New versions can be generated using the following shell script.
LOCALTIME=Factory \
TZDATA_TEXT= \
PACKRATDATA=backzone PACKRATLIST=zone.tab \
ZONETABLES=zone1970.tab
ZONETABLES=zone1970.tab\ zonenow.tab
tar --create --dereference --hard-dereference --file tzfile.tar \
--directory=tz tzfile.h
tar --create --dereference --hard-dereference --file zoneinfo.tar \
Expand Down
2 changes: 1 addition & 1 deletion absl/time/internal/cctz/testdata/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023c
2023d
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Ensenada
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Godthab
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Goose_Bay
Binary file not shown.
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Matamoros
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Metlakatla
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Moncton
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Nuuk
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Ojinaga
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Santa_Isabel
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Scoresbysund
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/St_Johns
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/America/Tijuana
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Antarctica/Casey
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Antarctica/Macquarie
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Antarctica/Troll
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Antarctica/Vostok
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Asia/Gaza
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Asia/Hebron
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Asia/Nicosia
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Canada/Newfoundland
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Belfast
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Bucharest
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Chisinau
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Guernsey
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Isle_of_Man
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Jersey
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Kiev
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Kyiv
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/London
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Nicosia
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Riga
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Sofia
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Tallinn
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Tiraspol
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Uzhgorod
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Vilnius
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Europe/Zaporozhye
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/GB
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/GB-Eire
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Mexico/BajaNorte
Binary file not shown.
Binary file modified absl/time/internal/cctz/testdata/zoneinfo/Pacific/Norfolk
Binary file not shown.
17 changes: 11 additions & 6 deletions absl/time/internal/cctz/testdata/zoneinfo/iso3166.tab
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.
#
# From Paul Eggert (2022-11-18):
# From Paul Eggert (2023-09-06):
# This file contains a table of two-letter country codes. Columns are
# separated by a single tab. Lines beginning with '#' are comments.
# All text uses UTF-8 encoding. The columns of the table are as follows:
#
# 1. ISO 3166-1 alpha-2 country code, current as of
# ISO 3166-1 N1087 (2022-09-02). See: Updates on ISO 3166-1
# https://isotc.iso.org/livelink/livelink/Open/16944257
# 2. The usual English name for the coded region,
# chosen so that alphabetic sorting of subsets produces helpful lists.
# This is not the same as the English name in the ISO 3166 tables.
# ISO/TC 46 N1108 (2023-04-05). See: ISO/TC 46 Documents
# https://www.iso.org/committee/48750.html?view=documents
# 2. The usual English name for the coded region. This sometimes
# departs from ISO-listed names, sometimes so that sorted subsets
# of names are useful (e.g., "Samoa (American)" and "Samoa
# (western)" rather than "American Samoa" and "Samoa"),
# sometimes to avoid confusion among non-experts (e.g.,
# "Czech Republic" and "Turkey" rather than "Czechia" and "Türkiye"),
# and sometimes to omit needless detail or churn (e.g., "Netherlands"
# rather than "Netherlands (the)" or "Netherlands (Kingdom of the)").
#
# The table is sorted by country code.
#
Expand Down
29 changes: 15 additions & 14 deletions absl/time/internal/cctz/testdata/zoneinfo/zone1970.tab
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#country-
#codes coordinates TZ comments
AD +4230+00131 Europe/Andorra
AE,OM,RE,SC,TF +2518+05518 Asia/Dubai Crozet, Scattered Is
AE,OM,RE,SC,TF +2518+05518 Asia/Dubai Crozet
AF +3431+06912 Asia/Kabul
AL +4120+01950 Europe/Tirane
AM +4011+04430 Asia/Yerevan
Expand All @@ -47,12 +47,13 @@ AQ -6736+06253 Antarctica/Mawson Mawson
AQ -6448-06406 Antarctica/Palmer Palmer
AQ -6734-06808 Antarctica/Rothera Rothera
AQ -720041+0023206 Antarctica/Troll Troll
AQ -7824+10654 Antarctica/Vostok Vostok
AR -3436-05827 America/Argentina/Buenos_Aires Buenos Aires (BA, CF)
AR -3124-06411 America/Argentina/Cordoba most areas: CB, CC, CN, ER, FM, MN, SE, SF
AR -2447-06525 America/Argentina/Salta Salta (SA, LP, NQ, RN)
AR -2411-06518 America/Argentina/Jujuy Jujuy (JY)
AR -2649-06513 America/Argentina/Tucuman Tucumán (TM)
AR -2828-06547 America/Argentina/Catamarca Catamarca (CT); Chubut (CH)
AR -2828-06547 America/Argentina/Catamarca Catamarca (CT), Chubut (CH)
AR -2926-06651 America/Argentina/La_Rioja La Rioja (LR)
AR -3132-06831 America/Argentina/San_Juan San Juan (SJ)
AR -3253-06849 America/Argentina/Mendoza Mendoza (MZ)
Expand Down Expand Up @@ -81,7 +82,7 @@ BG +4241+02319 Europe/Sofia
BM +3217-06446 Atlantic/Bermuda
BO -1630-06809 America/La_Paz
BR -0351-03225 America/Noronha Atlantic islands
BR -0127-04829 America/Belem Pará (east); Amapá
BR -0127-04829 America/Belem Pará (east), Amapá
BR -0343-03830 America/Fortaleza Brazil (northeast: MA, PI, CE, RN, PB)
BR -0803-03454 America/Recife Pernambuco
BR -0712-04812 America/Araguaina Tocantins
Expand All @@ -99,19 +100,19 @@ BR -0958-06748 America/Rio_Branco Acre
BT +2728+08939 Asia/Thimphu
BY +5354+02734 Europe/Minsk
BZ +1730-08812 America/Belize
CA +4734-05243 America/St_Johns Newfoundland; Labrador (southeast)
CA +4439-06336 America/Halifax Atlantic - NS (most areas); PE
CA +4734-05243 America/St_Johns Newfoundland, Labrador (SE)
CA +4439-06336 America/Halifax Atlantic - NS (most areas), PE
CA +4612-05957 America/Glace_Bay Atlantic - NS (Cape Breton)
CA +4606-06447 America/Moncton Atlantic - New Brunswick
CA +5320-06025 America/Goose_Bay Atlantic - Labrador (most areas)
CA,BS +4339-07923 America/Toronto Eastern - ON, QC (most areas)
CA,BS +4339-07923 America/Toronto Eastern - ON & QC (most areas)
CA +6344-06828 America/Iqaluit Eastern - NU (most areas)
CA +4953-09709 America/Winnipeg Central - ON (west); Manitoba
CA +4953-09709 America/Winnipeg Central - ON (west), Manitoba
CA +744144-0944945 America/Resolute Central - NU (Resolute)
CA +624900-0920459 America/Rankin_Inlet Central - NU (central)
CA +5024-10439 America/Regina CST - SK (most areas)
CA +5017-10750 America/Swift_Current CST - SK (midwest)
CA +5333-11328 America/Edmonton Mountain - AB; BC (E); NT (E); SK (W)
CA +5333-11328 America/Edmonton Mountain - AB, BC(E), NT(E), SK(W)
CA +690650-1050310 America/Cambridge_Bay Mountain - NU (west)
CA +682059-1334300 America/Inuvik Mountain - NT (west)
CA +5546-12014 America/Dawson_Creek MST - BC (Dawson Cr, Ft St John)
Expand All @@ -126,7 +127,7 @@ CL -3327-07040 America/Santiago most of Chile
CL -5309-07055 America/Punta_Arenas Region of Magallanes
CL -2709-10926 Pacific/Easter Easter Island
CN +3114+12128 Asia/Shanghai Beijing Time
CN,AQ +4348+08735 Asia/Urumqi Xinjiang Time, Vostok
CN +4348+08735 Asia/Urumqi Xinjiang Time
CO +0436-07405 America/Bogota
CR +0956-08405 America/Costa_Rica
CU +2308-08222 America/Havana
Expand Down Expand Up @@ -171,8 +172,8 @@ HT +1832-07220 America/Port-au-Prince
HU +4730+01905 Europe/Budapest
ID -0610+10648 Asia/Jakarta Java, Sumatra
ID -0002+10920 Asia/Pontianak Borneo (west, central)
ID -0507+11924 Asia/Makassar Borneo (east, south); Sulawesi/Celebes, Bali, Nusa Tengarra; Timor (west)
ID -0232+14042 Asia/Jayapura New Guinea (West Papua / Irian Jaya); Malukus/Moluccas
ID -0507+11924 Asia/Makassar Borneo (east, south), Sulawesi/Celebes, Bali, Nusa Tengarra, Timor (west)
ID -0232+14042 Asia/Jayapura New Guinea (West Papua / Irian Jaya), Malukus/Moluccas
IE +5320-00615 Europe/Dublin
IL +314650+0351326 Asia/Jerusalem
IN +2232+08822 Asia/Kolkata
Expand Down Expand Up @@ -251,7 +252,7 @@ PK +2452+06703 Asia/Karachi
PL +5215+02100 Europe/Warsaw
PM +4703-05620 America/Miquelon
PN -2504-13005 Pacific/Pitcairn
PR,AG,CA,AI,AW,BL,BQ,CW,DM,GD,GP,KN,LC,MF,MS,SX,TT,VC,VG,VI +182806-0660622 America/Puerto_Rico AST
PR,AG,CA,AI,AW,BL,BQ,CW,DM,GD,GP,KN,LC,MF,MS,SX,TT,VC,VG,VI +182806-0660622 America/Puerto_Rico AST - QC (Lower North Shore)
PS +3130+03428 Asia/Gaza Gaza Strip
PS +313200+0350542 Asia/Hebron West Bank
PT +3843-00908 Europe/Lisbon Portugal (mainland)
Expand Down Expand Up @@ -287,7 +288,7 @@ RU +4310+13156 Asia/Vladivostok MSK+07 - Amur River
RU +643337+1431336 Asia/Ust-Nera MSK+07 - Oymyakonsky
RU +5934+15048 Asia/Magadan MSK+08 - Magadan
RU +4658+14242 Asia/Sakhalin MSK+08 - Sakhalin Island
RU +6728+15343 Asia/Srednekolymsk MSK+08 - Sakha (E); N Kuril Is
RU +6728+15343 Asia/Srednekolymsk MSK+08 - Sakha (E), N Kuril Is
RU +5301+15839 Asia/Kamchatka MSK+09 - Kamchatka
RU +6445+17729 Asia/Anadyr MSK+09 - Bering Sea
SA,AQ,KW,YE +2438+04643 Asia/Riyadh Syowa
Expand Down Expand Up @@ -329,7 +330,7 @@ US +470659-1011757 America/North_Dakota/Center Central - ND (Oliver)
US +465042-1012439 America/North_Dakota/New_Salem Central - ND (Morton rural)
US +471551-1014640 America/North_Dakota/Beulah Central - ND (Mercer)
US +394421-1045903 America/Denver Mountain (most areas)
US +433649-1161209 America/Boise Mountain - ID (south); OR (east)
US +433649-1161209 America/Boise Mountain - ID (south), OR (east)
US,CA +332654-1120424 America/Phoenix MST - AZ (most areas), Creston BC
US +340308-1181434 America/Los_Angeles Pacific
US +611305-1495401 America/Anchorage Alaska (most areas)
Expand Down
Loading

0 comments on commit bd47468

Please sign in to comment.