AceTime  2.1.0
Date and time classes for Arduino that support timezones from the TZ Database.
Functions | Variables
common.h File Reference

Internal identifiers used by implementation code, not intended to be publically exported. More...

#include <stdint.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
void ace_time::internal::swap (T &a, T &b)
 Swap 2 parameters.
 

Variables

const uint8_t ace_time::internal::kAbbrevSize = 6 + 1
 Size of the c-string buffer needed to hold a time zone abbreviation. More...
 

Detailed Description

Internal identifiers used by implementation code, not intended to be publically exported.

Definition in file common.h.

Variable Documentation

◆ kAbbrevSize

const uint8_t ace_time::internal::kAbbrevSize = 6 + 1

Size of the c-string buffer needed to hold a time zone abbreviation.

Longest abbreviation currently seems to be 5 characters (https://www.timeanddate.com/time/zones/) but the TZ database spec says that abbreviations are 3 to 6 characters (https://data.iana.org/time-zones/theory.html#abbreviations), so use 6 as the maximum. Plus one for the terminating NUL character.

Definition at line 29 of file common.h.