summaryrefslogtreecommitdiff
path: root/src/date_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/date_func.h')
-rw-r--r--src/date_func.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/date_func.h b/src/date_func.h
index 6bbde5955..f32e6c7c9 100644
--- a/src/date_func.h
+++ b/src/date_func.h
@@ -23,6 +23,9 @@ extern uint16 _tick_counter;
void SetDate(Date date, DateFract fract);
void ConvertDateToYMD(Date date, YearMonthDay *ymd);
Date ConvertYMDToDate(Year year, Month month, Day day);
+Ticks GetCurrentTickCount();
+
+#define YMD_TO_DATE(ymd) (ConvertYMDToDate(ymd.year, ymd.month, ymd.day))
/**
* Checks whether the given year is a leap year or not.