AceTime
1.1.2
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
|
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>");
virtual ZoneProcessor * getZoneProcessor(const void *zoneInfo)=0
Get ZoneProcessor from either a basic::ZoneInfo or an extended::ZoneInfo.
void printTo(Print &printer) const
Print the human readable representation of the time zone.
ZoneProcessor * mZoneProcessor
Used by kTypeBasic, kTypeExtended.
bool isUtc() const
Return true if UTC (+00:00+00:00).
const void * mZoneInfo
Used by kTypeBasic, kTypeExtended, kTypeBasicManaged, kTypeExtendedManaged.
void printTo(Print &printer) const
Print the human readable string.
void printShortTo(Print &printer) const
Print the short human readable representation of the time zone.
Base interface for ZoneProcessor classes.
static TimeOffset forMinutes(int16_t minutes)
Create TimeOffset from minutes from 00:00.
virtual void printShortTo(Print &printer) const =0
Print a short human-readable identifier (e.g.
ZoneProcessorCache * mZoneProcessorCache
Used by kTypeBasicManaged, kTypeExtendedManaged.
virtual void printTo(Print &printer) const =0
Print a human-readable identifier (e.g.