Dayoff.Calendar.Bengali (Dayoff v0.1.0)

Copy Markdown View Source

The revised Bengali calendar as date-bengali-revised implements it: the year starts on April 14th, months have 31 days for the first five and 30 for the rest, and the eleventh month gets a 31st day when the Gregorian year it falls in is a leap year.

Summary

Functions

The Gregorian date of a Bengali date.

Functions

to_gregorian(bengali_year, month, day)

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

The Gregorian date of a Bengali date.

iex> Dayoff.Calendar.Bengali.to_gregorian(1425, 1, 1)
~D[2018-04-14]