Dayoff.Calendar.Julian (Dayoff v0.2.1)

Copy Markdown View Source

Proleptic Julian calendar dates as Gregorian Dates, for rules like julian 12-25 (Orthodox Christmas).

Summary

Functions

The Gregorian date of a Julian calendar date.

Functions

to_gregorian(year, month, day)

@spec to_gregorian(integer(), 1..12, 1..31) :: Date.t()

The Gregorian date of a Julian calendar date.

iex> Dayoff.Calendar.Julian.to_gregorian(2026, 12, 25)
~D[2027-01-07]

iex> Dayoff.Calendar.Julian.to_gregorian(2026, 1, 1)
~D[2026-01-14]