7 #include "common/util.h" 26 case kTypeBasicManaged:
27 case kTypeExtendedManaged:
31 if (! processor)
break;
36 printer.print(
"<Error>");
46 mStdOffsetMinutes + mDstOffsetMinutes);
47 utcOffset.printTo(printer);
49 printer.print((mDstOffsetMinutes != 0) ?
"DST" :
"STD");
57 case kTypeBasicManaged:
58 case kTypeExtendedManaged:
62 if (! processor)
break;
67 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 void printTo(Print &printer) const =0
Print a human-readable identifier (e.g.
static TimeOffset forMinutes(int16_t minutes)
Create TimeOffset from minutes from 00:00.
ZoneProcessor * mZoneProcessor
Used by kTypeBasic, kTypeExtended.
ZoneProcessorCache * mZoneProcessorCache
Used by kTypeBasicManaged, kTypeExtendedManaged.