AceTime  3.0.0
Date and time classes for Arduino that support timezones from the TZ Database.
zone_registry.cpp
1 // This file was generated by the following script:
2 //
3 // $ /home/brian/src/AceTimeSuite/compiler/src/acetimecompiler/tzcompiler.py
4 // --input_dir /home/brian/src/AceTimeSuite/libraries/AceTimeLib/src/testingzonedb/tzfiles
5 // --output_dir /home/brian/src/AceTimeSuite/libraries/AceTimeLib/src/testingzonedb
6 // --tz_version 2025b
7 // --action zonedb
8 // --language arduino
9 // --scope basic
10 // --db_namespace testingzonedb
11 // --zi_namespace basic::Info
12 // --include_list include_list.txt
13 // --nocompress
14 // --start_year 1980
15 // --until_year 2200
16 //
17 // using the TZ Database files
18 //
19 // africa
20 // antarctica
21 // asia
22 // australasia
23 // backward
24 // etcetera
25 // europe
26 // northamerica
27 // southamerica
28 //
29 // from https://github.com/eggert/tz/releases/tag/2025b
30 //
31 // Supported Zones: 12 (11 zones, 1 links)
32 // Unsupported Zones: 585 (329 zones, 256 links)
33 //
34 // Requested Years: [1980,2200]
35 // Accurate Years: [1980,32767]
36 //
37 // Original Years: [1844,2087]
38 // Generated Years: [1945,2007]
39 // Lower/Upper Truncated: [True,False]
40 //
41 // Estimator Years: [1945,2009]
42 // Max Buffer Size: 6
43 //
44 // Records:
45 // Infos: 12
46 // Eras: 15
47 // Policies: 8
48 // Rules: 32
49 //
50 // Memory (8-bits):
51 // Context: 16
52 // Rules: 288
53 // Policies: 24
54 // Eras: 165
55 // Zones: 143
56 // Links: 13
57 // Registry: 24
58 // Formats: 27
59 // Letters: 11
60 // Fragments: 0
61 // Names: 202 (original: 202)
62 // TOTAL: 913
63 //
64 // Memory (32-bits):
65 // Context: 24
66 // Rules: 384
67 // Policies: 64
68 // Eras: 240
69 // Zones: 264
70 // Links: 24
71 // Registry: 48
72 // Formats: 27
73 // Letters: 17
74 // Fragments: 0
75 // Names: 202 (original: 202)
76 // TOTAL: 1294
77 //
78 // DO NOT EDIT
79 
80 #include <zoneinfo/compat.h>
81 #include "zone_infos.h"
82 #include "zone_registry.h"
83 
84 namespace ace_time {
85 namespace testingzonedb {
86 
87 //---------------------------------------------------------------------------
88 // Zone Info registry. Sorted by zoneId.
89 //---------------------------------------------------------------------------
90 const basic::Info::ZoneInfo* const kZoneRegistry[11] ACE_TIME_PROGMEM = {
91  &kZoneAmerica_New_York, // 0x1e2a7654, America/New_York
92  &kZoneAustralia_Darwin, // 0x2876bdff, Australia/Darwin
93  &kZoneAmerica_Vancouver, // 0x2c6f6b1f, America/Vancouver
94  &kZoneAmerica_Chicago, // 0x4b92b5d4, America/Chicago
95  &kZoneAmerica_Edmonton, // 0x6cb9484a, America/Edmonton
96  &kZoneAmerica_Toronto, // 0x792e851b, America/Toronto
97  &kZoneAmerica_Winnipeg, // 0x8c7dafc7, America/Winnipeg
98  &kZoneAmerica_Denver, // 0x97d10b2a, America/Denver
99  &kZonePacific_Galapagos, // 0xa952f752, Pacific/Galapagos
100  &kZoneAmerica_Los_Angeles, // 0xb7f7e8f2, America/Los_Angeles
101  &kZoneAfrica_Johannesburg, // 0xd5d157a0, Africa/Johannesburg
102 
103 };
104 
105 //---------------------------------------------------------------------------
106 // Zone and Link (fat) Info registry. Sorted by zoneId. Links act like Zones.
107 //---------------------------------------------------------------------------
108 const basic::Info::ZoneInfo* const kZoneAndLinkRegistry[12] ACE_TIME_PROGMEM = {
109  &kZoneAmerica_New_York, // 0x1e2a7654, America/New_York
110  &kZoneAustralia_Darwin, // 0x2876bdff, Australia/Darwin
111  &kZoneAmerica_Vancouver, // 0x2c6f6b1f, America/Vancouver
112  &kZoneAmerica_Chicago, // 0x4b92b5d4, America/Chicago
113  &kZoneAmerica_Edmonton, // 0x6cb9484a, America/Edmonton
114  &kZoneAmerica_Toronto, // 0x792e851b, America/Toronto
115  &kZoneAmerica_Winnipeg, // 0x8c7dafc7, America/Winnipeg
116  &kZoneAmerica_Denver, // 0x97d10b2a, America/Denver
117  &kZoneUS_Pacific, // 0xa950f6ab, US/Pacific -> America/Los_Angeles
118  &kZonePacific_Galapagos, // 0xa952f752, Pacific/Galapagos
119  &kZoneAmerica_Los_Angeles, // 0xb7f7e8f2, America/Los_Angeles
120  &kZoneAfrica_Johannesburg, // 0xd5d157a0, Africa/Johannesburg
121 
122 };
123 
124 }
125 }
Macros and definitions that provide a consistency layer among the various Arduino boards for compatib...