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").
| Fact | Value |
|---|---|
| Source | modules/calendar |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | none |
| Imported by | agenda, imports |
Exports
| Export | What it does |
|---|---|
| days_in_month(month: Integer, year: Integer) -> Integer | gives 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).
