Skip to content
ct

Class

GameDate

Generated GDScript class reference for CalendarTime.GameDate.

Status
Current
Version
v2.0.4
Updated
2026-08-09

Represents day, month, and year for gameplay needs. Serialization contract (Calendar Time 2.0): save/load uses property names [member day], [member month], [member year] via [method to_dict] / [method from_dict]. Payloads never store [code]class_name[/code] strings. Renaming properties requires a migration (see MIGRATION.md § serialization keys).

Source: addons/calendar_time/game_time/time_units/game_date.gd

Syntax

class GameDate extends Resource

Members

NameKindSummary
dayPropertyThe one-based day of the month.
monthPropertyThe one-based month of the year.
yearPropertyThe year number for the given date
is_same_dateMethod
get_days_countMethod
is_valid_dateMethod
to_dictMethod
from_dictMethod
as_formattedMethod