Skip to content

Class

CalendarUnits

Generated GDScript class reference for CalendarTime.CalendarUnits.

Status
Current
Version
v2.1.0
Source updated
2026-08-09
Generated on
2026-09-01

Authored calendar-unit structure: the shape of in-game time (issue #318). This is the calendar-unit half of the former combined TimeScale. It defines how many seconds make a minute, hour, and day. Runtime pacing (the engine to game rate) lives separately on ClockPacing. GameCalendar owns this.

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

Syntax

class CalendarUnits extends Resource

Members

NameKindSummary
seconds_per_minutePropertyNumber of seconds in a gameplay minute.
minutes_per_hourPropertyNumber of minutes in an hour.
hours_per_dayPropertyNumber of hours in a day.
seconds_per_hourPropertyReturns a single hour measured in seconds.
seconds_per_dayPropertyReturns a single day measured in seconds.