Browse project documentation

Daynum overview

Daynumv1.0.0-beta.4View sourceEnglish / Persian

Choose a calendar and find the guide for your task.

Daynum is an immutable PHP library for converting, displaying and calculating civil dates in Gregorian, Jalali and two Hijri calendars. It requires PHP 8.1+ and has no Composer runtime dependencies; ext-intl is not needed at runtime.

Release status

These guides accompany v1.0.0-beta.4, dated October 8, 2026. It is a prerelease, not a stable 1.0 release. This version includes the bilingual guides, stricter repeated AM/PM and offset parsing, and improved name normalization. The parsing guide identifies behavior added in beta.4; beta.3 does not include those changes. See the release changelog.

Choose a task

Choose a calendar

CalendarEntry pointsSupported construction years
GregorianfromGregorian() / gregorian()-9999–9999, including year 0
JalalifromJalali() / jalali()1–3177
Hijri Umm al-QurafromHijri() / hijri()AH 1300–1600
Civil HijrifromHijriCivil() / hijriCivil()AH 1–9666

A CivilDateTime stores a day, wall-clock time and optional timezone label. Calendar conversion keeps the time and label. It does not convert an instant between timezones. Use PHP’s DateTimeImmutable or timestamps for that work; see timezones.

Search documentation

Search across all projects. Close this window to return to your guide.

Tab to navigate · Enter to openEsc to close