7 #include "common/util.h" 26 case kTypeBasicManaged:
27 case kTypeExtendedManaged:
31 if (! processor)
break;
36 printer.print(
"<Error>");
46 mStdOffsetCode + mDstOffsetCode);
47 utcOffset.printTo(printer);
49 printer.print((mDstOffsetCode != 0) ?
"DST" :
"STD");
57 case kTypeBasicManaged:
58 case kTypeExtendedManaged:
62 if (! processor)
break;
67 printer.print(
"<Error>");
76 printer.print((mDstOffsetCode != 0) ?
"DST" :
"STD");
83 case kTypeBasicManaged:
84 case kTypeExtendedManaged:
88 if (! processor)
break;
89 printer.print(processor->
getAbbrev(epochSeconds));
93 printer.print(
"<Error>");
Base interface for ZoneProcessor classes.
bool isUtc() const
Return true if UTC (+00:00+00:00).
virtual ZoneProcessor * getZoneProcessor(const void *zoneInfo)=0
Get ZoneProcessor from either a basic::ZoneInfo or an extended::ZoneInfo.
void printShortTo(Print &printer) const
Print the short human readable representation of the time zone.
void printTo(Print &printer) const
Print the human readable string.
virtual void printShortTo(Print &printer) const =0
Print a short human-readable identifier (e.g.
const void * mZoneInfo
Used by kTypeBasic, kTypeExtended, kTypeBasicManaged, kTypeExtendedManaged.
void printTo(Print &printer) const
Print the human readable representation of the time zone.
virtual const char * getAbbrev(acetime_t epochSeconds) const =0
Return the time zone abbreviation at epochSeconds.
static TimeOffset forOffsetCode(int8_t offsetCode)
Create TimeOffset from the offset code.
virtual void printTo(Print &printer) const =0
Print a human-readable identifier (e.g.
void printAbbrevTo(Print &printer, acetime_t epochSeconds) const
Print the time zone abbreviation for the given epochSeconds.
ZoneProcessor * mZoneProcessor
Used by kTypeBasic, kTypeExtended.
ZoneProcessorCache * mZoneProcessorCache
Used by kTypeBasicManaged, kTypeExtendedManaged.