-
Notifications
You must be signed in to change notification settings - Fork 0
/
dst.h
36 lines (31 loc) · 982 Bytes
/
dst.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef DST_IL_H
#define DST_IL_H
/* dst.h
Definitions for local daylight saving time.
These are specific to Illinois, USA.
Manually edit for other locations.
*/
#define DST_FIRST_YEAR 2018
#define MAX_DST_YEAR 2029
#define DAYLIGHT_TZ_STRING "CDT"
#define STANDARD_TZ_STRING "CST"
#define DAYLIGHT_TZ -5 // Central Time (USA)
#define STANDARD_TZ -6 // Central Time (USA)
#define DST_EFFECTIVE_HOUR 2 // The early morning hour that DST starts or stops
// DST changeover dates (USA)
// Data format: dst starting month, day, dst ending month, day
const int dst_info[] = {
3, 11, 11, 4, // 2018
3, 10, 11, 3, // 2019
3, 8, 11, 1, // 2020
3, 14, 11, 7, // 2021
3, 13, 11, 6, // 2022
3, 12, 11, 5, // 2023
3, 10, 11, 3, // 2024
3, 9, 11, 2, // 2025
3, 8, 11, 1, // 2026
3, 14, 11, 7, // 2027
3, 12, 11, 5, // 2028
3, 11, 11, 4 // 2029
};
#endif