This class can render calendars as arrays of time elements.
It takes a given start date and period length and generates arrays of time elements that describe what should be rendered on calendars for that period like years, quarters, months, weeks and days.
The generated time elements array can be filtered by one of several possible formatter classes that can transform the array into a more useful format.
Currently it provides formatter classes that can transform the array in a JSON format string or an object. |