6 #ifndef ACE_TIME_EXTENDED_ZONE_H 7 #define ACE_TIME_EXTENDED_ZONE_H 9 #include "internal/ZoneInfo.h" 11 #include "common/flash.h" 13 class __FlashStringHelper;
26 mZoneInfoBroker(zoneInfo) {}
34 #if ACE_TIME_USE_PROGMEM 35 const __FlashStringHelper* name()
const {
36 return (
const __FlashStringHelper*) mZoneInfoBroker.name();
39 const __FlashStringHelper* shortName()
const {
40 const char* name = mZoneInfoBroker.name();
41 const char* slash = strrchr_P(name,
'/');
42 return (slash) ? (
const __FlashStringHelper*) (slash + 1)
43 : (
const __FlashStringHelper*) name;
46 const char* name()
const {
47 return mZoneInfoBroker.name();
50 const char* shortName()
const {
51 const char* name = mZoneInfoBroker.name();
52 const char* slash = strrchr(name,
'/');
53 return (slash) ? (slash + 1) : name;
57 uint32_t zoneId()
const {
58 return mZoneInfoBroker.zoneId();
Representation of a given time zone, implemented as an array of ZoneEra records.
A thin wrapper around an extended::ZoneInfo data structure to provide a stable API access to some use...
The classes provide a thin layer of indirection for accessing the zoneinfo files stored in the zonedb...