What Is a Calendar System?
A calendar system organizes days into larger units such as weeks, months and years, using rules that connect dates to seasonal, cultural or administrative cycles.
Calendars are rule sets
A calendar tells people how to name and group days. It defines a year, divides it into months or other periods, and determines how dates advance. Different calendars can label the same physical day with different year and month values. A date therefore needs a calendar context, just as a clock time needs a time-zone context.
Some calendars follow the Sun, some follow the Moon, and some combine lunar months with adjustments that keep the calendar near a solar year. The calendar used for civil purposes can differ from calendars used for religious observances or cultural traditions. A computer date is not automatically universal merely because it uses digits.
The Gregorian calendar
The Gregorian calendar is the civil calendar widely used for international business and modern computing. Its leap-year rule adds a day in years divisible by four, except century years not divisible by 400. This keeps the average calendar year close to the seasonal year.
It was introduced in 1582 as a reform of the Julian calendar. Adoption happened at different times in different places. Some countries used the old calendar for centuries after others had changed. As a result, a historic date can be valid in one location's records but not align with the same written date elsewhere.
Gregorian and Julian dates
The Julian calendar uses a simpler rule: every fourth year is a leap year. Over long periods, that rule accumulates a small difference relative to the seasonal year. The Gregorian reform adjusted the leap-year rule and corrected the calendar's alignment at the time of adoption.
When historians convert an old date, they may distinguish between the Julian date actually used by a source and its Gregorian equivalent. Software sometimes uses the proleptic Gregorian calendar, extending Gregorian rules backward before the calendar was historically adopted. That is useful for consistent calculations, but it does not mean historical communities used those rules.
Calendars in software
For typical dates after the Gregorian calendar became the civil standard in a region, Gregorian arithmetic is usually appropriate. Historical research, genealogy and archival records need more care. Record the source calendar and the conversion convention when exact interpretation matters.
Also distinguish a calendar date from an instant. A date such as 2026-10-16 names a day; a timestamp names a moment. Combining a date with a time zone requires an explicit calendar and local rule.
For leap-year rules, see What Is a Leap Year? For a date without a time, read What Is a Calendar Date?
Why software usually sticks to Gregorian rules
Most business applications assume the proleptic Gregorian calendar for civil dates because it is the dominant international standard for commerce and government records. Libraries still need care with historical dates, religious calendars and localized week rules.
If your product supports non-Gregorian calendars, keep the calendar system explicit in the data model instead of converting everything to Gregorian too early. For the common software default, see the proleptic Gregorian calendar and leap years.