AceTime  2.4.0
Date and time classes for Arduino that support timezones from the TZ Database.
common.h
Go to the documentation of this file.
1 /*
2  * MIT License
3  * Copyright (c) 2018 Brian T. Park
4  */
5 
6 #ifndef ACE_TIME_COMMON_COMMON_H
7 #define ACE_TIME_COMMON_COMMON_H
8 
9 #include <stdint.h>
10 
17 namespace ace_time {
18 
24 typedef int32_t acetime_t;
25 
26 namespace internal {
27 
46 const uint8_t kAbbrevSize = 7 + 1;
47 
49 template <typename T>
50 void swap(T& a, T& b) {
51  T tmp = a;
52  a = b;
53  b = tmp;
54 }
55 
56 }
57 }
58 
59 #endif
void swap(T &a, T &b)
Swap 2 parameters.
Definition: common.h:50
const uint8_t kAbbrevSize
Size of the c-string buffer needed to hold a time zone abbreviation.
Definition: common.h:46
int32_t acetime_t
Type for the number of seconds from epoch.
Definition: common.h:24