OSDN Git Service

First version
[st-ro/stro.git] / src / map / date.h
1 // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
2 // For more information, see LICENCE in the main folder
3
4 #ifndef _DATE_H_
5 #define _DATE_H_
6
7 #include "../common/cbasetypes.h"
8
9 #ifdef  __cplusplus
10 extern "C" {
11 #endif
12
13 enum e_month{
14         JANUARY = 1,
15         FEBRUARY,
16         MARCH,
17         APRIL,
18         MAY,
19         JUNE,
20         JULY,
21         AUGUST,
22         SEPTEMBER,
23         OCTOBER,
24         NOVEMBER,
25         DECEMBER
26 };
27
28 enum e_dayofweek{
29         SUNDAY = 0,
30         MONDAY,
31         TUESDAY,
32         WEDNESDAY,
33         THURSDAY,
34         FRIDAY,
35         SATURDAY
36 };
37
38 enum e_date_type{
39         DT_MIN = 0,
40         DT_SECOND,
41         DT_MINUTE,
42         DT_HOUR,
43         DT_DAYOFWEEK,
44         DT_DAYOFMONTH,
45         DT_MONTH,
46         DT_YEAR,
47         DT_DAYOFYEAR,
48         DT_MAX
49 };
50
51 int date_get_year(void);
52 enum e_month date_get_month(void);
53 int date_get_dayofmonth(void);
54 enum e_dayofweek date_get_dayofweek(void);
55 int date_get_dayofyear(void);
56 int date_get_day(void);
57 int date_get_hour(void);
58 int date_get_min(void);
59 int date_get_sec(void);
60
61 int date_get( enum e_date_type type );
62
63 bool is_day_of_sun(void);
64 bool is_day_of_moon(void);
65 bool is_day_of_star(void);
66
67 #ifdef  __cplusplus
68 }
69 #endif
70 #endif /* _DATE_H_ */