modus

The module calendar

The days of the months of the Gregorian calendar.

This version has a fault: it forgets the rule of the 400 years, so the year 2000 has 365 days and February 2000 has 28. The module calendar_fixed corrects it with the same description of each export: the system can give calendar_fixed to each module that imports this one (docs/MODULE_CONTRACT.md, "Replacement of an import").

FactValue
Sourcemodules/calendar
Boot imagein the boot image; the image is not built, so its size is not known
Importsnone
Imported byagenda, imports

Exports

ExportWhat it does
days_in_month(month: Integer, year: Integer) -> Integergives the count of days of a month, from 1 to 12, of a year

Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).