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
commitdb73addb43c4078e7458a1fca5e51b08f8367014 (patch)
tree508e8401c183c6c1eea3c3458a291d8ecc8f280f /src/date_func.h
parentf82aeb82c5fa241982d0efad72e72e32fe8fd6e2 (diff)
downloadopenttd-db73addb43c4078e7458a1fca5e51b08f8367014.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 */