AceTime
2.2.0
Date and time classes for Arduino that support timezones from the TZ Database.
src
ace_time
common
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
36
const
uint8_t
kAbbrevSize
= 6 + 1;
37
39
template
<
typename
T>
40
void
swap
(T& a, T& b) {
41
T tmp = a;
42
a = b;
43
b = tmp;
44
}
45
46
}
47
}
48
49
#endif
ace_time::internal::swap
void swap(T &a, T &b)
Swap 2 parameters.
Definition:
common.h:40
ace_time::internal::kAbbrevSize
const uint8_t kAbbrevSize
Size of the c-string buffer needed to hold a time zone abbreviation.
Definition:
common.h:36
ace_time::acetime_t
int32_t acetime_t
Type for the number of seconds from epoch.
Definition:
common.h:24
Generated by
1.9.1