Skip to content

Reference

tilttek/fantasy-calendar

Every public type of the package, with its role.

TypeRole
CalendarA calendar: dates and days, weekdays, moon phases, years in eras, seasons, years between two days
MonthA month: its days, its leap days, and whether it counts in the week
LeapRule, LeapCycleWhich years are leap, by cycles and exceptions
Moon, PhaseA moon with its own cycle, and its eight phases
Era, EraYearAn era that numbers the years again, and a year as an era numbers it
Season, SeasonAtA season, and the season of a day with its climate zone
DayA day of a calendar as a whole number, compared by its methods
DateA year, month and day of the month
CalendarCodecWrites a calendar to an array and reads it back
Template\GregorianThe proleptic Gregorian calendar, as a model to copy
Calendars, LinkThe calendars of a world, their links, parents and conversions
Reminder, Recurrence, OccurrenceA reminder tying an entry to a day, how it comes back, and one of its days
AgendaThe reminders of a range of days, inherited ones included
CurrentDate, PaceThe current day of a world and the pace it moves at
LifespanThe span of an entry and its age on a day
LimitsThe bounds of every definition and computation
Contract\SeasonSourceThe port of the seasons and climate zones, for the weather
Contract\ReminderSourceThe port of the reminders
Store\InMemoryRemindersThe reminders in memory, for tests
Exception\FantasyCalendarException and its four exceptionsExceptions