Tarikh Shamsi B Miladi
The relationship between the two is not a simple subtraction of a fixed number because the Shamsi year starts in late March, and the Gregorian year starts in January.
def shamsi_to_miladi(year, month, day): """Convert Solar Hijri to Gregorian""" shamsi_date = jdatetime.date(year, month, day) gregorian_date = shamsi_date.togregorian() return gregorian_date tarikh shamsi b miladi
Understanding the Difference: Tarikh Shamsi vs Miladi The relationship between the two is not a
Notice how the Gregorian date shifts between March 20 and March 21 depending on the equinox time. tarikh shamsi b miladi