AceTime  0.3
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
ZoneContext.h
1 #ifndef ACE_TIME_COMMON_ZONE_CONTEXT_H
2 #define ACE_TIME_COMMON_ZONE_CONTEXT_H
3 
4 namespace ace_time {
5 namespace common {
6 
11 struct ZoneContext {
12  /*
13  * Epoch year. Currently always 2000 but could change in the future. We're
14  * leaving this out for now because it's not clear how or if the various
15  * AceTime classes can use this information since the value '2000' is often
16  * a compile-time constant instead of a runtime constant.
17  */
18  //int16_t epoch_year;
19 
21  const int16_t startYear;
22 
24  const int16_t untilYear;
25 
27  const char* const tzVersion;
28 };
29 
30 }
31 }
32 
33 #endif
const int16_t untilYear
Until year of the zone files.
Definition: ZoneContext.h:24
const char *const tzVersion
TZ Database version which generated the zone info.
Definition: ZoneContext.h:27
const int16_t startYear
Start year of the zone files.
Definition: ZoneContext.h:21
Metadata about the zone database.
Definition: ZoneContext.h:11