AceTime
2.1.0
Date and time classes for Arduino that support timezones from the TZ Database.
src
ace_time
internal
common.h
Go to the documentation of this file.
1
/*
2
* MIT License
3
* Copyright (c) 2023 Brian T. Park
4
*/
5
6
#ifndef ACE_TIME_INTERNAL_COMMON_H
7
#define ACE_TIME_INTERNAL_COMMON_H
8
9
#include <stdint.h>
10
18
namespace
ace_time {
19
namespace
internal {
20
29
const
uint8_t
kAbbrevSize
= 6 + 1;
30
32
template
<
typename
T>
33
void
swap
(T& a, T& b) {
34
T tmp = a;
35
a = b;
36
b = tmp;
37
}
38
39
}
40
}
41
42
#endif
ace_time::internal::swap
void swap(T &a, T &b)
Swap 2 parameters.
Definition:
common.h:33
ace_time::internal::kAbbrevSize
const uint8_t kAbbrevSize
Size of the c-string buffer needed to hold a time zone abbreviation.
Definition:
common.h:29
Generated by
1.9.1