|
@@ -9,19 +9,14 @@
|
|
|
|
|
|
#ifndef DATE_FUNC_H
|
|
|
#define DATE_FUNC_H
|
|
|
|
|
|
#include "date_type.h"
|
|
|
|
|
|
extern Year _cur_year;
|
|
|
extern Month _cur_month;
|
|
|
extern Date _date;
|
|
|
extern DateFract _date_fract;
|
|
|
extern uint64 _tick_counter;
|
|
|
|
|
|
void SetDate(Date date, DateFract fract);
|
|
|
void ConvertDateToYMD(Date date, YearMonthDay *ymd);
|
|
|
Date ConvertYMDToDate(Year year, Month month, Day day);
|
|
|
|
|
|
/**
|
|
|
* Checks whether the given year is a leap year or not.
|
|
|
* @param yr The year to check.
|