cheatah
Struct

space::time::CivilDate

cheatah-space v0.1.0-alpha — Biome Standard 0.6.5-alpha

A calendar date in the proleptic Gregorian calendar, astronomical year numbering.

A plain aggregate: no invariant is enforced on construction, so a CivilDate can hold 2026-02-30. Ask is_valid_civil() when the value came from outside; the conversions here are total functions over whatever they are handed.

Constants & variables

var int year #

Astronomical year numbering: 0 is 1 BC, -1 is 2 BC.

var int month #

1–12 for a valid date.

var int day #

1–31 for a valid date, bounded by days_in_month().