Skip to main content

ScheduleNow

Which slot the clock says should be on right now, and what follows it

Attributes (4)
AttributeTypeRequiredDescription
nowstringYesWhat time it is on the station's own clock, in the same zone-naive YYYY-MM-DD HH:mm:ss shape as a block's ends. It is here so a caller can say how much of the block is left without knowing the station's timezone: subtracting two readings taken in one frame is arithmetic, deriving one is not
slotIdstringNoThe slot in force at this instant. Absent means the station has no schedule
airingSlotIdstringNoThe slot the running order actually belongs to. Different from the one above while an operator's own choice holds, which it does until the next slot begins
upcomingScheduleOccurrence[]YesThe block on now, if there is one, and the few that follow it, earliest first. Empty for a station with nothing scheduled from here on. A gap is simply absent, exactly as it is on the timetable: what plays there is the sustaining source rather than a block