Skip to main content

Occasion

What a date means where this station is: a name the presenters can say, and a mood to lean into on a day the show on air names none. ruleKind says when it falls, and which of the fields beside it count

Attributes (15)
AttributeTypeRequiredDescription
idstringYesread-only
wordsstringYesSaid on air as written: Halloween, the first day of Hanukkah
ruleKind'fixed' | 'weekday' | 'easter' | 'calendar' | 'dates'Yesfixed is the same date every year, from month and day. weekday is the nth of a weekday in a month, from month, ordinal and weekday. easter is a number of days from Western Easter Sunday, from offsetDays. calendar is a date in the Hebrew or Islamic calendar, from calendar, calendarMonth and day. dates is the dates themselves, from dates, for what no rule can work out
monthnumberNo
daynumberNoThe day of the month, in the rule's own calendar
ordinalnumberNoWhich of that weekday in the month: 1 to 5, or -1 for the last. The fourth Thursday of November is 4
weekdaynumberNo0 is Sunday
offsetDaysnumberNoDays from Easter Sunday: 0 is the day itself and -2 is Good Friday
calendar'hebrew' | 'islamic-umalqura'Noislamic-umalqura is calculated, so a community going by the sighted moon may keep the day a day either side of it
calendarMonthstringNoThe month in that calendar, as calendars lists it
datesstring[]NoAs YYYY-MM-DD. These run out, so a list needs refreshing
mood'love' | 'happiness' | 'comfort' | 'sadness' | 'loneliness' | 'anger' | 'fear'NoWhat this day leans into, when the show on air names no mood of its own. Records a model has judged to be in it are a little more likely to be picked, and nothing is ever kept off the air for it. Absent leans nothing
enabledbooleanYesWhether the station knows about it. Off, it is never said and never leans anything
positionnumberYesWhere it comes in the list. When two fall on one date the first wins. read-only
nextDatestringNoWhen it next falls, as YYYY-MM-DD on the station's calendar, counting today. Absent when it does not fall again, as a list of dates that has run out. read-only