Converting dates between the Shamsi (Solar Hijri/Persian) and Miladi (Gregorian) calendars is simple once you understand the fixed offsets and month lengths. 1. Key Conversion Formula
# مثال: تبدیل 1 فروردین 1400 به میلادی j = JalaliDate(1400, 1, 1) gregorian = j.to_gregorian() print(gregorian) # خروجی: 2021-03-21However, despite its global acceptance and accuracy, the Miladi calendar has some drawbacks. For one, it is not as closely tied to the natural cycles of the seasons as the Shamsi calendar. The months of the Miladi calendar do not correspond to specific solar months, and the beginning of the year is arbitrary, falling on January 1st. This can make it less intuitive and meaningful for people living in certain regions, particularly those in the Northern Hemisphere. tarikh shamsi b miladi better
This article was last updated in 2026 — Miladi year 2026 currently corresponds to Shamsi years 1404 (until March 20) and 1405 (starting March 21). However, despite its global acceptance and accuracy, the
The world uses various calendars to keep track of time, with the Gregorian calendar being the most widely used. However, there are other calendars that have their own unique features and advantages. One such calendar is the Shamsi calendar, also known as the Solar Hijri calendar, which is used in many countries, including Iran and Afghanistan. In this blog post, we will explore why the Shamsi calendar is better than the Gregorian calendar in many ways. despite its global acceptance and accuracy
Lower Drift Rate: The Gregorian calendar drifts by about one day every 3,236 to 4,000 years. In contrast, the Solar Hijri calendar has a much smaller margin of error, drifting only one day in roughly 110,000 years (some estimates suggest 5,000 years depending on the specific calculation model used).
# Epoch Adjustment: # 1 Farvardin 1 Shamsi = March 21, 622 Gregorian. # March 21 is day 80 in a non-leap Gregorian year (622 was not a leap year). # Days passed in Gregorian calendar before Shamsi epoch start = 621 * 365 + leaps_g + 80 # Instead of absolute epoch, we calculate the offset.How convert miladi date to shamsi * The terms where unfamilar to me, but quick Duck Duck Going got me stackoverflow.com/questions/ Stack Overflow