summaryrefslogtreecommitdiff
path: root/src/date_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-26 13:50:40 +0000
committerrubidium <rubidium@openttd.org>2007-12-26 13:50:40 +0000
commitb9046c97fb6d3723c48c1004f03c759d1747ba63 (patch)
tree508e8401c183c6c1eea3c3458a291d8ecc8f280f /src/date_func.h
parent2786d789a15990a27b73c0a4fbceb429e7dac953 (diff)
downloadopenttd-b9046c97fb6d3723c48c1004f03c759d1747ba63.tar.xz
(svn r11702) -Codechange: move all date related stuff to date*.
Diffstat (limited to 'src/date_func.h')
-rw-r--r--src/date_func.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/date_func.h b/src/date_func.h
new file mode 100644
index 000000000..d196fdb52
--- /dev/null
+++ b/src/date_func.h
@@ -0,0 +1,19 @@
+/* $Id$ */
+
+/** @file date_func.h Functions related to dates. */
+
+#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;
+
+void SetDate(Date date);
+void ConvertDateToYMD(Date date, YearMonthDay *ymd);
+Date ConvertYMDToDate(Year year, Month month, Day day);
+
+#endif /* DATE_FUNC_H */