Calendar versioning

Also known as: CalVer

On this page 7

Calendar versioning, abbreviated CalVer, is a release numbering convention that derives version numbers from the date of the release rather than from the nature of the changes it contains. A version such as 2026.11.2 or 24.04 tells the reader when the software was published, which makes the scheme a practical tool for managing the software lifecycle of products with time-based release cycles and fixed support windows.

CalVer is the main alternative to semantic versioning. Where semantic versioning encodes compatibility promises in its numbers, calendar versioning encodes age and release cadence, leaving compatibility to be communicated through release notes, deprecation policies and long-term support labels.

How calendar versioning builds a version number

A CalVer version is assembled from standardized date segments combined with optional counters. Each project chooses a format and then applies it consistently, so that every version string sorts chronologically and can be interpreted without a lookup table.

The community convention defines short tokens for each segment. Projects typically combine a year token, a month or week token and a micro counter that increments for additional releases in the same period, such as hotfixes or maintenance releases.

TokenMeaningExample value
YYYYFull four-digit year2026
YYShort year without zero padding26
0YShort year with zero padding06
MMMonth without zero padding4
0MMonth with zero padding04
WWWeek of the year47
DDDay of the month28
MICROIncrementing counter within a period2
Standard CalVer segment tokens

The date normally reflects the planned or actual release date, not the date when development started. Some projects instead use the date of the feature freeze, which should be documented because readers otherwise assume the publication date.

Common CalVer formats in practice

Real projects use a small number of recurring format families, chosen mainly by how often they release and whether they need a separate counter for patches. The table summarizes the widely seen patterns and the release cadence each one suits.

FormatExampleTypical cadenceSuited for
YY.0M24.04Twice a yearOperating system distributions
YYYY.MM.MICRO2026.11.2Monthly with patchesDeveloper tools and libraries
YYYY.MINOR2026.3Several per yearApplications with numbered annual releases
YY.MINOR.MICRO26.1.4Frequent, irregularServices that patch often
YYYYMMDD20261128Daily or nightlyNightly builds and snapshots
Typical formats and their fit

Ubuntu is the best-known example of the YY.0M form, with the April release of each even year marked as a long-term support version. Several Python packaging tools and home automation platforms use year-first formats with a micro counter, which keeps multiple releases per month distinguishable.

Calendar versioning compared with semantic versioning

The two schemes answer different questions for the user. Semantic versioning answers whether an upgrade will break existing integrations, while calendar versioning answers how current a release is and how long it will be supported.

AspectCalendar versioningSemantic versioning
Primary signalRelease date and freshnessCompatibility of the API
Breaking change visibilityNot encoded in the numberMajor version increment
Release triggerCalendar scheduleContent of the changes
Support window calculationDirectly readable from the versionRequires a separate policy table
Dependency range toolsLess expressive constraintsCaret and tilde ranges work naturally
CalVer and SemVer side by side

Hybrid approaches exist. Some projects use a calendar year as the major number and semantic rules for the remaining segments, which preserves the date signal while still flagging breaking changes. The cost is a scheme that readers must learn rather than recognize at once.

Switching an existing project from semantic versioning to CalVer requires care, because version ordering must stay monotonic. Moving from 3.8 to 2026.1 works because the new number is larger, but moving from a large major number to a short year such as 26.1 can make package managers treat the new release as older.

When calendar versioning is the right choice

CalVer fits best when releases follow a fixed schedule and when the scope of each release is large or heterogeneous, so that a single compatibility signal would be misleading. Operating systems, platforms bundling many components, and products with contractual support periods benefit most.

  • Time-boxed release cycles: a release ships on its date with whatever features passed the code freeze.
  • Large aggregated products: a distribution bundling thousands of packages cannot meaningfully promise API stability with one number.
  • Support and end-of-life planning: a reader can tell at a glance that a 2021 release is likely near or past end of life.
  • Frequently updated services: rolling platforms where every release is backward compatible gain little from a major number.

Libraries consumed by other code are usually a weaker fit. Package managers rely on version ranges to accept safe upgrades automatically, and without a breaking-change signal, consumers must pin versions tightly or read every changelog before upgrading.

Pitfalls and common misconceptions

The most frequent misconception is that a newer calendar version is always compatible with an older one. CalVer makes no such promise, so projects that adopt it need an explicit deprecation and breaking change policy published alongside the numbering rules.

ProblemCauseFix
Release slips into next monthVersion fixed before the actual ship dateAssign the version at release time
Incorrect sortingMixing padded and unpadded segmentsChoose one padding rule and keep it
Unclear upgrade riskNo compatibility signal in the numberPublish breaking changes in release notes
Tool rejects leading zerosPackage index normalizes versionsUse unpadded tokens such as YY.MM
Typical problems and their fixes

Another subtle issue is ecosystem normalization. Some package indexes strip leading zeros, so a version written as 24.04 may be stored as 24.4; projects should verify how their distribution channel treats the format before committing to it.

Explained without jargon

Calendar versioning names each software release after the date it came out, much like a wine label shows the vintage year. If a program is called version 2026.11, it was released in November 2026.

This makes it easy to see how old a version is. The trade-off is that the date alone does not say whether an update might break something, so the makers explain that separately in their release notes.

A typical use case

An IT department in a mid-sized hospital standardizes its Linux servers on an operating system distribution that uses the YY.0M format. The department sees version 24.04 marked as long-term support and immediately knows it was released in April 2024 and will receive security updates for several years.

When planning the next upgrade cycle, the team compares 24.04 with 26.04 without opening any documentation: the two-year gap shows the release distance, and the long-term support label shows that both are maintained. The team schedules the migration for the second half of 2026 and avoids running servers past end of life, which keeps the hospital within its internal security audit requirements.