-
Notifications
You must be signed in to change notification settings - Fork 0
/
date-details.h
56 lines (46 loc) · 1.6 KB
/
date-details.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* date-details.h; headers for the implemented parts in date-details.cpp
* Copyright (C) 2016 Aayush Agarwal
*
* 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 3 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DATE_DETAILS_H
#define DATE_DETAILS_H
#include <cinttypes>
#include <cmath>
namespace date {
namespace details {
unsigned long pow(unsigned long base, int pow);
/** sets the day bits in datecontainer
* uint8_t day - the day
* does not return anything
*/
// void setday(uint32_t day, uint32_t* datecontainer_ptr);
/** sets the month bits in datecontainer
* uint8_t mnth - the month
* does not return anything
*/
// void setmnth(uint32_t month, uint32_t* datecontainer_ptr);
/** sets the year bits in datecontainer
* uint32_t year - the year
* does not return anything
*/
// void setyr(uint32_t year, uint32_t* datecontainer_ptr);
/** sets if the date happened before common era or is in the common era
* bool bce - true means CE, false means BCE
* does not return anything
*/
// void setbce(bool bce, uint32_t* datecontainer_ptr);
}
}
#endif