Skip to content

Class

GameDate

Generated GDScript class reference for CalendarTime.GameDate.

Status
Current
Version
v2.1.1
Source updated
2026-08-09
Generated on
2026-10-12

Represents day, month, and year for gameplay needs. Serialization contract (Calendar Time 2.0): save/load uses property names day, month, year via to_dict() / from_dict(). Payloads never store class_name 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