How Calendars Are Laid Out and Counted
This page describes the rules the calendar tool follows and what its counts mean.
Supported repeat rules
Events from an ICS file are laid out following RFC 5545, the iCalendar standard, within the set described here. Anything outside this set isn’t approximated; the whole event is counted as not supported (see below).
Repeats
- Events that repeat daily, weekly, monthly, or yearly, written with only these parts of the repeat rule (RRULE): FREQ, INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, and BYMONTH. Any other part isn’t supported.
- Weekdays with a position, such as the second Tuesday or the last Friday, in monthly and yearly repeats. Days of the month, including counting from the end (the last day of the month), in daily and monthly repeats, and in yearly repeats that name the months.
-
Months (
BYMONTH) pick the months of a yearly repeat, and keep only the occurrences in those months in a daily, weekly, or monthly repeat. In a yearly repeat that names the months, a weekday position such as the fourth Thursday counts within each month, and without a day or weekday the day of the month is taken from the start. Months skipped by an interval, such as every other month, stay skipped even if they’re named. - Dates that don’t exist, such as February 30, are skipped and don’t count toward the number of times. A typed event that repeats every month on the 29th, 30th, or 31st skips the months without that day.
- Events that don’t repeat are printed as one occurrence, on each day they cover, plus any extra dates.
Extra dates, skipped dates, and changed occurrences
-
An extra date (
RDATE) adds an occurrence that starts at that date and time and lasts as long as the event’s first occurrence. It has to be written in the same form as the event’s start and can’t be before the start. An extra date that matches another occurrence adds nothing. The number of times and the end date of the repeat rule don’t apply to extra dates. -
A skipped date (
EXDATE) removes the occurrence that starts at that date and time, including an extra date. It has to be written in the same form as the event’s start. A skipped date that matches no occurrence changes nothing. -
A changed occurrence (
RECURRENCE-ID) replaces the one occurrence it points to, which can be an extra date. The new date and time decide which day it appears on and whether it falls in the months you pick. A title, location, or description it leaves out is taken from the original event. - Events marked tentative or confirmed are printed like any other.
All-day events and time zones
- All-day events appear on every day from their start date up to, but not including, the end date written in the file, which is how calendar apps write them. For a typed all-day event, the last day you enter is included.
- Times written in UTC or with a time zone name are shown in the time zone you choose, which starts as your browser’s time zone. Typed times, times written without a time zone, and all-day events stay as written whatever time zone you choose. The time zone used is printed on every page.
-
Time zone names have to be IANA names, such as
America/New_York. On a daylight saving change, a time that happens twice means the first one, and a time that’s skipped is moved forward by the change (for example, 2:30 becomes 3:30). - An event that runs past midnight appears on each day it covers, and counts as one occurrence. An event that ends exactly at midnight doesn’t appear on the next day.
- An event is in the months you pick if any part of it falls between the first day of the start month and the end of the end month, in the time zone you choose.
Limits
The tool doesn’t accept more than the following, and doesn’t make pages for part of the input. It shows which limit you went over instead.
- 500 events (a repeating event counts once)
- 12 months from the start month to the end month
- 5,000 occurrences in the months you pick
- 300,000 characters of titles, locations, and descriptions across those occurrences, counting each occurrence of a repeating event
- 20,000 occurrences worked out up to the end of those months, including ones before the start month and extra dates
- 50,000 repeat periods (days, weeks, months, or years) checked up to the end of those months, or up to the latest changed occurrence in the file
Rule versions
Each set of rules has a version number, shown in the tool and printed at the bottom of every page. When a change would lay out the same file differently, the version goes up. Parts of the page layout may still change in a later version: the order and numbering of events, the “+ more” line, the time format, the first day of the week, the page orientation, the text sizes and the default text size, which occurrences the detail pages list, the page estimate, how the list and detail pages are laid out, and the page dimensions other than the line height and the character widths, such as the margins and spacing that set how wide a line is.
- Repeating events (
recurrence): version 3 - Skipped and changed occurrences (
exceptions): version 2 - Time zones and all-day events (
timezones): version 1 - Month calendar pages (
month-grid): version 4 - List pages (
list-pages): version 1 - Detail pages (
detail-pages): version 4 - Counts (
reconciliation): version 2
Source: RFC 5545, Internet Calendaring and Scheduling Core Object Specification (iCalendar).
Events that aren’t printed
Every event you enter ends up in exactly one of three groups: on these pages, outside the dates, or not supported. Events in the last two groups aren’t printed. They’re counted and listed by title before you print. The count checks that each event is in exactly one of the three groups, and shows it if the numbers don’t match.
- Outside the dates: the event has no occurrence in the months you pick. This includes an event whose every occurrence is skipped.
- Not supported: the event uses something outside the supported set. The tool doesn’t lay out any of its occurrences, including changed ones, rather than print a guess. This is decided before the dates are checked, so an event can be not supported even if it has nothing in the months you pick.
The reason shown for an event that isn’t supported is that it:
- repeats more often than daily
- uses a repeat rule part that isn’t supported
- repeats yearly on days of the month without naming the months
- has a repeat rule that can’t be read
- starts on a date its repeat rule doesn’t produce
- has a repeat rule that ends before the event starts
- skips dates written in a different form from its start
- changes an occurrence that doesn’t exist
- changes an occurrence of an event that isn’t in the file
- changes the same occurrence twice
- has a changed occurrence with its own repeat rule
- is marked cancelled
- changes an occurrence written in a different form from its start
- appears more than once with the same ID
- has no ID
- changes this and all later occurrences
- adds dates written in a different form from its start
- adds a date before the event starts
- adds a date with its own length
- uses an exclusion rule
- uses a time zone name that isn’t supported
- has a start or end that can’t be read
To-dos, journal entries, and other items in a file that aren’t events aren’t counted as events. Their number is shown separately, and they aren’t printed.
What the counts mean
The counts aren’t taken from the steps that lay out the pages. After the month and detail pages are drawn, a separate count reads the drawn pages back, along with your input and the lists of events that aren’t printed.
- Events entered: the events in your input. A repeating
event and its changed occurrences count as one event. In a file, events
are told apart by their ID (
UID). - On these pages: the events with at least one occurrence on the pages, and the number of occurrences. An occurrence that covers several days counts once.
- Outside the dates and Not supported: the events in each list.
- On the detail pages: the occurrences on the detail pages, which hold every occurrence on the pages.
The check is that events entered equals on these pages plus outside the dates plus not supported, with each event in exactly one group. The count also checks that each day on the month pages, or on the list pages, lists the same occurrences as the detail pages, and that each title, location, and description on the detail pages matches your input.
If anything doesn’t match, the tool lists it, and the bottom of every page says the counts don’t match. You can still print.
Month cells and detail pages
You can print “Month calendar and details”, “List and details”, or “Details only” on Letter or A4 paper, with Small, Medium, or Large text. The month calendar and the list are always printed with the detail pages, so every event has a place for its full text.
- Each month in the range gets one month page. Weeks start on Sunday. Days from the months before and after are shown without events, so an occurrence isn’t printed on two month pages.
- In each day, all-day events come first, then events in order of start time. An event with a time shows it first, such as “7:30a”; on the following days it covers, it shows “(cont.)” instead.
- Every occurrence gets a number, counting through the whole printout in the order the days come. The same occurrence has the same number on the month page and the detail pages. An event with a location or description ends with its number in brackets.
- Text is split into lines by the width of each character in the page font, not by counting characters, so a line of wide letters like W holds fewer characters than a line of narrow ones. Characters the font doesn’t have are counted at a fixed width. That width is wider than the Chromium and WebKit browser engines on a Mac draw the kinds of characters likely to turn up in English-language events, such as emoji, Chinese, Japanese, and Korean characters, other accented Latin letters, and Greek and Cyrillic letters. A line can still run past its box if it has some rarer characters (even on a Mac) or characters that combine into one shape, such as joined emoji or Arabic and Indic scripts, if it’s printed on another system or browser, or if the page font doesn’t load. A word too wide for a line is split across lines, and no characters are dropped.
- How many lines fit in a day depends on the paper, the text size, and the number of weeks in the month. Large makes the list and detail pages larger. The month calendar uses the Medium size. An event is either printed whole in the day or moved to a line like “+2 more [14-15]”, which gives the count and the lowest and highest numbers to look up. Titles aren’t cut short and no ellipses are used.
- The detail pages list every occurrence in the months you pick, in number order, in two columns. Each one has its date and time, title, location, and the full description. Each month’s details start on a new page, and a month with no events has no detail page.
- Before you print, the tool estimates the number of pages: one page per month for the month calendar, plus the detail pages it fills. Your browser’s print preview shows the final count.
List pages
The list prints each day that has events, in date order, under a heading such as “Saturday, December 12”, in two columns. The year is at the top of the page.
- An occurrence is listed under every day it covers, in the same order as in a day on the month calendar. An all-day event starts with “All day”. An event with a time shows its start and end, such as “7:30a-8:30a”, or only its start if it ends on a later day or has no length; on the following days it shows “(cont.)” instead.
- Locations and descriptions aren’t printed on the list. An event that has either ends with its number in brackets, the same number as on the detail pages, which have its full text. Every occurrence is on the detail pages, numbered in date order.
- Titles aren’t cut short. A long one continues on the next line, split by character widths as on the month calendar.
- Each month’s list starts on a new page, followed by that month’s detail pages, so each month can be handed out on its own. A month with no events has no list page and no detail page.
- When a day doesn’t fit at the bottom of a column, it moves to the next column. When a day’s events run into the next column, that column starts with the day’s heading and “(cont.)”.
- Large makes the list and detail pages larger. The month calendar uses the Medium size. Before you print, the tool estimates the number of pages: the list pages each month fills, plus the detail pages.
Your files stay in your browser
Your events and ICS files are read in your browser and aren’t sent to a server or put in the page address. The tool doesn’t connect to your calendar account, and it doesn’t save what you entered: reloading the page clears it.
Disclaimer
We count the pages again after they’re drawn, but check the counts and the printed pages before you hand them out. Events with rules outside the supported set and events outside the months you pick aren’t printed; they’re counted and listed instead. The tool doesn’t interpret your events, such as deadlines or conflicts, and it doesn’t replace your calendar app’s printing or an official schedule.