AceTime  0.7
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.inc
1 /*
2  * MIT License
3  * Copyright (c) 2019 Brian T. Park
4  */
5 
10 struct ZoneContext {
12  static const uint8_t TIME_MODIFIER_W = 0x00;
13 
15  static const uint8_t TIME_MODIFIER_S = 0x10;
16 
18  static const uint8_t TIME_MODIFIER_U = 0x20;
19 
20  /*
21  * Epoch year. Currently always 2000 but could change in the future. We're
22  * leaving this out for now because it's not clear how or if the various
23  * AceTime classes can use this information since the value '2000' is often
24  * a compile-time constant instead of a runtime constant.
25  */
26  //int16_t epoch_year;
27 
29  const int16_t startYear;
30 
32  const int16_t untilYear;
33 
35  const char* const tzVersion;
36 };