dotnet/Documentation/breaking-changes/persian-calendar-now-uses-t...

30 lines
1.1 KiB
Markdown
Raw Normal View History

## 134: 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 PersianCalendar class uses the Hijri solar algorithm. Converting dates between the PersianCalendar 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, `PersianCalendar.MinSupportedDateTime` 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 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
[More information](https://msdn.microsoft.com/en-us/library/dn833125%28v=vs.110%29.aspx#Core)