-
Notifications
You must be signed in to change notification settings - Fork 5
/
adst.h
38 lines (34 loc) · 1.11 KB
/
adst.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
37
38
/*
* Auto DST support for VFD Modular Clock
* (C) 2012 William B Phelps
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
*/
#ifndef ADST_H_
#define ADST_H_
//typedef struct {
// uint8_t Month;
// uint8_t DOTW;
// uint8_t Week;
// uint8_t Hour;
//} DST_Rule;
//typedef struct {
// DST_Rule Start;
// DST_Rule End;
// uint8_t Offset;
//} DST_Rules;
char* dst_setting(uint8_t dst);
uint8_t dotw(uint16_t year, uint8_t month, uint8_t day);
//void DSTinit(tmElements_t* te, DST_Rules* rules);
//uint8_t getDSToffset(tmElements_t* te, DST_Rules* rules);
void DSTinit(tmElements_t* te, int8_t rules[9]);
uint8_t getDSToffset(tmElements_t* te, int8_t rules[9]);
#endif