6 #ifndef ACE_TIME_BASIC_ZONE_H
7 #define ACE_TIME_BASIC_ZONE_H
9 #include "internal/ZoneInfo.h"
13 class __FlashStringHelper;
24 BasicZone(
const basic::ZoneInfo* zoneInfo):
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();