Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.17 KB

persian-calendar-now-uses-the-hijri-solar-algorithm.md

File metadata and controls

36 lines (25 loc) · 1.17 KB

Persian calendar now uses the Hijri solar algorithm

Scope

Minor

Version Introduced

4.6

Source Analyzer Status

Available

Change Description

Starting with the .NET Framework 4.6, the xref:System.Globalization.PersianCalendar?displayProperty=name class uses the Hijri solar algorithm. Converting dates between the xref:System.Globalization.PersianCalendar?displayProperty=name and other calendars may produce a slightly different result beginning with the .NET Framework 4.6 for dates earlier than 1800 or later than 2023 (Gregorian).

Also, xref:System.Globalization.PersianCalendar.MinSupportedDateTime?displayProperty=nameWithType is now March 22, 0622 instead of March 21, 0622.

  • Quirked
  • Build-time break

Recommended Action

Be aware that some early or late dates may be slightly different when using the PersianCalendar in .NET Framework 4.6. Also, when serializing dates between processes which may run on different .NET Framework versions, do not store them as PersianCalendar date strings (since those values may be different).

Affected APIs

  • T:System.Globalization.PersianCalendar

Category

Core