Persian Calendar

The modern Persian calendar, or the Solar Hijri calendar, was adopted in 1911. It consists of twelve months of 30 or 31 days. The new year always falls on the March equinox.

convertdate.persian.equinox_jd(gyear)

Calculate Julian day during which the March equinox, reckoned from the Tehran meridian, occurred for a given Gregorian year.

convertdate.persian.format(year, month, day)

Convert a Persian date into a string with the format DD MONTH YYYY.

convertdate.persian.from_gregorian(year, month, day)
convertdate.persian.from_jd(jd)

Calculate Persian date from Julian day

convertdate.persian.jd_to_pyear(jd)

Determine the year in the Persian astronomical calendar in which a given Julian day falls.

Returns:

tuple - (Persian year, Julian day number containing equinox for this year)

convertdate.persian.last_equinox_jd(jd)

Return the Julian date of spring equinox immediately preceeding the given Julian date.

convertdate.persian.leap(year)

Is a given year a leap year in the Persian calendar ?

convertdate.persian.month_length(year, month)
convertdate.persian.monthcalendar(year, month)
convertdate.persian.to_gregorian(year, month, day)
convertdate.persian.to_jd(year, month, day)

Determine Julian day from Persian date