Go to the documentation of this file.
32 return yr % 4 == 0 && (yr % 100 != 0 || yr % 400 == 0);
Month _cur_month
Current month (0..11)
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
Date _date
Current date in days (day counter)
int32 Date
The type to store our dates in.
static bool IsLeapYear(Year yr)
Checks whether the given year is a leap year or not.
uint8 Month
Type for the month, note: 0 based, i.e. 0 = January, 11 = December.
Date ConvertYMDToDate(Year year, Month month, Day day)
Converts a tuple of Year, Month and Day to a Date.
void ConvertDateToYMD(Date date, YearMonthDay *ymd)
Converts a Date to a Year, Month & Day.
uint64 _tick_counter
Ever incrementing tick counter for setting off various events.
void SetDate(Date date, DateFract fract)
Set the date.
Data structure to convert between Date and triplet (year, month, and day).
uint8 Day
Type for the day of the month, note: 1 based, first day of a month is 1.
uint16 DateFract
The fraction of a date we're in, i.e. the number of ticks since the last date changeover.
DateFract _date_fract
Fractional part of the day.
Year _cur_year
Current year, starting at 0.