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