Delphi: 我可以扩展 TDateTimePicker 以支持另一个日历系统吗?如何?

Delphi: Can I extend TDateTimePicker to support another calendar system? How?

我想将日历系统(如公历)实现为 TDateTimePicker。

1) 我想知道我可以扩展 TDateTimePicker class 以使用其视觉功能,但更改其日历计算系统以匹配我的日历系统吗?

2) 如果是这样,我必须做什么?里面的哪个 classes 必须更改或扩展以更改其计算系统?起点是什么?

TDateTimePicker 只是微软 DTP control 的薄包装。它不支持更改底层日历系统。

About Date and Time Picker Controls

The control is based on the Gregorian calendar, which was introduced in 1753. It will not calculate dates that are consistent with the Julian calendar.

这是波斯语日期选择器:

https://github.com/A1Gard/PDate

关于这个:

The best Delphi & lazarus unit for convert windows standard DateTime to PersianDate & TimeStamp
version 1.3.1:

some bug fixed
version 1.3:

added lazarus compatibility
added function GetTheFirstDayOfThisMonth
added function GetTheFirstDayOfThisWeek
added function GetPersianDayWeek
added function Delphi DatePicker component
fixed bug in PersiantoGer function
version 1.2:

added function DateTimeToUnix
added function UnixToDateTime
version 1.1:

added function UIntToDateTime
added function GerToWord
added function PersianToInt
version 1:

added function GerToPersian
added function PersiantoGer 

Author persian descrption