AceTime  0.8
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.
Public Attributes | Static Public Attributes | List of all members
ace_time::TimeZoneData Struct Reference

Data structure that captures the internal state of a TimeZone object with enough information so that it can be serialized using TimeZone::toTimeZoneData() then reconstructed using ZoneManager::createForTimeZoneData(). More...

#include <TimeZoneData.h>

Public Attributes

uint8_t type
 
union {
   struct {
      int16_t   stdOffsetMinutes
 
      int16_t   dstOffsetMinutes
 
   } 
 Used for kTypeManual. More...
 
   uint32_t   zoneId
 All of kTypeBasic, kTypeExtended, kTypeBasicManaged, kTypeExtendedManaged collapse down to a kTypeZoneId.
 
}; 
 

Static Public Attributes

static const uint8_t kTypeError = 0
 
static const uint8_t kTypeManual = 1
 
static const uint8_t kTypeZoneId = 2
 

Detailed Description

Data structure that captures the internal state of a TimeZone object with enough information so that it can be serialized using TimeZone::toTimeZoneData() then reconstructed using ZoneManager::createForTimeZoneData().

This data structure is meant to a simple and somewhat opaque serialization object. You should not rely on this struct to remain stable, nor reach into its internal fields. No versioning is provided for simplicity. If the internal format changes in the future, the previous version will likely be incompatible with the new version of the library. It is recommended to use a CRC check to detect version incompatibility if this data structure is saved (e.g. EEPROM) and retrieved later .

Definition at line 27 of file TimeZoneData.h.


The documentation for this struct was generated from the following file: