1 #ifndef ACE_TIME_ZONE_SPECIFIER_H 2 #define ACE_TIME_ZONE_SPECIFIER_H 4 #include "common/common.h" 5 #include "TimeOffset.h" 6 #include "OffsetDateTime.h" 72 virtual const char*
getAbbrev(acetime_t epochSeconds)
const = 0;
85 virtual void printTo(Print& printer)
const = 0;
virtual void printTo(Print &printer) const =0
Print a human-readable identifier.
virtual OffsetDateTime getOffsetDateTime(const LocalDateTime &ldt) const =0
Return the best estimate of the OffsetDateTime at the given LocalDateTime for the timezone of the cur...
uint8_t getType() const
Return the kTypeXxx of the current instance.
static const uint8_t kTypeBasic
Indicate BasicZoneSpecifier.
virtual TimeOffset getDeltaOffset(acetime_t epochSeconds) const =0
Return the DST delta offset at epochSeconds.
virtual bool equals(const ZoneSpecifier &other) const =0
Return true if equal.
Base interface for ZoneSpecifier classes.
static const uint8_t kTypeExtended
Indicate ExtendedZoneSpecifier.
The date (year, month, day) and time (hour, minute, second) fields representing the time with an offs...
ZoneSpecifier(uint8_t type)
Constructor.
static const uint8_t kTypeManual
Indicate ManualZoneSpecifier.
A thin wrapper that represents a time offset from a reference point, usually 00:00 at UTC...
virtual TimeOffset getUtcOffset(acetime_t epochSeconds) const =0
Return the total UTC offset at epochSeconds, including DST offset.
virtual const char * getAbbrev(acetime_t epochSeconds) const =0
Return the time zone abbreviation at epochSeconds.