rathena/src/map/date.hpp
Aleos c4a364be2c
Initial work for map server to C++ (#2565)
* Initial progression of moving the map-server to C++ format.
* Converted all core files to .cpp and header files to .hpp.
* Refactored the refine database parser to utilize native YAML C++.
Thanks to @Jeybla and @lighta for their help!
2017-11-02 17:39:03 -04:00

64 lines
968 B
C++

// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _DATE_HPP_
#define _DATE_HPP_
#include "../common/cbasetypes.h"
enum e_month{
JANUARY = 1,
FEBRUARY,
MARCH,
APRIL,
MAY,
JUNE,
JULY,
AUGUST,
SEPTEMBER,
OCTOBER,
NOVEMBER,
DECEMBER
};
enum e_dayofweek{
SUNDAY = 0,
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY
};
enum e_date_type{
DT_MIN = 0,
DT_SECOND,
DT_MINUTE,
DT_HOUR,
DT_DAYOFWEEK,
DT_DAYOFMONTH,
DT_MONTH,
DT_YEAR,
DT_DAYOFYEAR,
DT_MAX
};
int date_get_year(void);
enum e_month date_get_month(void);
int date_get_dayofmonth(void);
enum e_dayofweek date_get_dayofweek(void);
int date_get_dayofyear(void);
int date_get_day(void);
int date_get_hour(void);
int date_get_min(void);
int date_get_sec(void);
int date_get( enum e_date_type type );
bool is_day_of_sun(void);
bool is_day_of_moon(void);
bool is_day_of_star(void);
#endif /* _DATE_HPP_ */