OpenTTD Source 20241224-master-gf74b0cf984
TimerGame< T >::YearMonthDay Struct Reference

Data structure to convert between Date and triplet (year, month, and day). More...

#include <timer_game_common.h>

Data Fields

Year year
 Year (0...)
 
Month month
 Month (0..11)
 
Day day
 Day (1..31)
 

Detailed Description

template<class T>
struct TimerGame< T >::YearMonthDay

Data structure to convert between Date and triplet (year, month, and day).

See also
ConvertDateToYMD(), ConvertYMDToDate()

Definition at line 52 of file timer_game_common.h.

Field Documentation

◆ day

template<class T >
Day TimerGame< T >::YearMonthDay::day

Day (1..31)

Definition at line 55 of file timer_game_common.h.

◆ month

template<class T >
Month TimerGame< T >::YearMonthDay::month

Month (0..11)

Definition at line 54 of file timer_game_common.h.

◆ year

template<class T >
Year TimerGame< T >::YearMonthDay::year

Year (0...)

Definition at line 53 of file timer_game_common.h.


The documentation for this struct was generated from the following file: