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) {}
29 #if ACE_TIME_USE_PROGMEM
30 const __FlashStringHelper* name()
const {
31 return (
const __FlashStringHelper*) mZoneInfoBroker.name();
34 const __FlashStringHelper* shortName()
const {
35 const char* name = mZoneInfoBroker.name();
36 const char* slash = strrchr_P(name,
'/');
37 return (slash) ? (
const __FlashStringHelper*) (slash + 1)
38 : (
const __FlashStringHelper*) name;
41 const char* name()
const {
42 return (
const char*) mZoneInfoBroker.name();
45 const char* shortName()
const {
46 const char* name = mZoneInfoBroker.name();
47 const char* slash = strrchr(name,
'/');
48 return (slash) ? (slash + 1) : name;
52 uint32_t zoneId()
const {
53 return mZoneInfoBroker.zoneId();