Defining a calendar
A time series definition must include a calendar. A calendar includes a calendar pattern, which can be defined separately or within the calendar definition.You can create a calendar or choose a predefined calendar.
To create a calendar:
- Optional: Create a named calendar pattern by inserting a row into the CalendarPatterns table by using the format of the CalendarPattern data type. A named calendar pattern is useful if you plan to use the same calendar pattern in multiple calendars.
- Create a calendar by inserting a row into the CalendarTable table by using the format of the Calendar data type. Include either the name of an existing calendar pattern or a calendar pattern definition.
To use a
predefined calendar, specify one when you create a time series with the TSCreate or TSCreateIrr function.
You can change a predefined calendar to meet your needs by updating
the row for the calendar in the CalendarTable table.