# CalendarSystem

Industry: Core

A calendar GMT's calendar functions support, named by its canonical calendar id: the CLDR `common/bcp47/calendar.xml` type that Temporal's `CanonicalizeCalendar` returns, and that RFC 9557's `[u-ca=<id>]` annotation carries.

```ts
import type { CalendarSystem } from "@northguild/gmt";
```

## Definition

```ts
type CalendarSystem =
  | "iso8601"
  | "gregory"
  | "hebrew"
  | "islamic-civil"
  | "islamic-tbla"
  | "islamic-umalqura"
  | "japanese"
  | "buddhist"
  | "roc"
  | "persian"
  | "indian"
  | "ethiopic"
  | "ethioaa"
  | "coptic";
```

## Used by

- [`buildBusinessCalendar`](/gmt/reference/calendar/rules/buildBusinessCalendar/)
- [`convertDateToCalendar`](/gmt/reference/plain/convert/convertDateToCalendar/)
- [`convertZonedToCalendar`](/gmt/reference/zoned/convert/convertZonedToCalendar/)
- [`holidayDates`](/gmt/reference/calendar/rules/holidayDates/)
- [`isValidHolidayRule`](/gmt/reference/calendar/validate/isValidHolidayRule/)

## Source

[types/calendar-system.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/calendar-system.ts)
