Changelog
tilttek/fantasy-calendarAll notable changes to tilttek/fantasy-calendar will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-27
Added
Calendar,Month,LeapRuleandLeapCycle: calendars of 1 to 100 months and weeks of 1 to 100 days, months outside the week and leap-only days, leap years by cycles and exceptions repeating within 10 000 years; dates turned into whole day numbers and back for any year within a million of year 0, weekdays, and whole years between two days.DayandDate: days of one calendar compared by their methods, refused across calendars, and dates of negative years.MoonandPhase: moons with a cycle of their own as an exact fraction of days, read from a decimal number, their eight phases and the next day of a phase.EraandEraYear: eras that number the years again, and one era that counts backward before the first.Season,SeasonAtandContract\SeasonSource: seasons, the season of a day with its day, its length and the climate zone of the calendar, and the port the weather reads them through.CalendarCodec: calendars written to arrays and read back, refusing any unknown key or wrong value with its place.Template\Gregorian: the proleptic Gregorian calendar, as a definition to copy.CalendarsandLink: linked calendars, conversions through the shortest chain of links, and parents whose reminders appear in their children.Reminder,Recurrence,Occurrence,Agenda,Contract\ReminderSourceandStore\InMemoryReminders: reminders tying an entry to a day once, yearly or monthly, the agenda of a range of up to 3 660 days, the port of the reminders and the store in memory for tests.CurrentDateandPace: the current day of a world, moving at a chosen pace or only when moved.Lifespan: ages from a birth or a founding, stopping at the end.Limitsand the exceptions under oneFantasyCalendarExceptioninterface:InvalidCalendar,OutOfRange,CalendarMismatchandUnknownCalendar.- Tests against PHP's own Gregorian dates, property tests over a million years, a fuzz target of the codec and a benchmark of the hot paths.
- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.