date_func.h File Reference

Functions related to dates. More...

#include "date_type.h"

Go to the source code of this file.

Functions

void SetDate (Date date)
void ConvertDateToYMD (Date date, YearMonthDay *ymd)
 Converts a Date to a Year, Month & Day.
Date ConvertYMDToDate (Year year, Month month, Day day)
 Converts a tupe of Year, Month and Day to a Date.
static bool IsLeapYear (Year yr)

Variables

Year _cur_year
 Current year, starting at 0.
Month _cur_month
 Current month (0..11).
Date _date
 Current date in days (day counter).
DateFract _date_fract

Detailed Description

Functions related to dates.

Definition in file date_func.h.


Function Documentation

void ConvertDateToYMD ( Date  date,
YearMonthDay ymd 
)
Date ConvertYMDToDate ( Year  year,
Month  month,
Day  day 
)

Generated on Sat Jun 5 21:52:14 2010 for OpenTTD by  doxygen 1.6.1