Skip to content

Reference

phil/recurrence
TypeKindRole
RecurrenceRulefinal readonly classAn RFC 5545 rule: reading, checking, writing
Recurrencefinal readonly classA rule from its first occurrence: occurrences, next one, exceptions, added dates
RecurrenceDatesfinal readonly classA line of RDATE or EXDATE dates: reading, checking, writing
Frequencystring-backed enumYEARLY, MONTHLY, WEEKLY, DAILY
Weekdaystring-backed enumMO to SU, and their ISO numbers
WeekdayNumfinal readonly classA weekday of BYDAY, with its place
Exception\RecurrenceExceptioninterfaceEvery exception of the library
Exception\InvalidRulefinal class, InvalidArgumentExceptionA rule or a line of dates that cannot be, or is not read

schema.org

SchemaOrg::of(Recurrence) gives a Schedule: start date and time, repeatFrequency as an ISO 8601 duration (P2W), byDay (https://schema.org/Tuesday, or 2TU for an ordinal), byMonthDay, byMonth, repeatCount, endDate (an end time written as the day it falls on in the first occurrence's time zone), exceptDate, scheduleTimezone. A Schedule has no property for added dates: they are left out. The array has a @type and no @context: it is meant to be embedded in a larger JSON-LD document.

TypeKindRole
SchemaOrgfinal classof(Recurrence): a schema.org Schedule, for the eventSchedule of an Event