[fpc-devel] negative TDateTime values and MinDateTime
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Aug 3 17:07:21 CEST 2011
Michael Schnell schrieb:
> On 08/03/2011 06:55 AM, LacaK wrote:
>> Jonas Maebe wrote / napĂsal(a):
>>>
>>> On 02 Aug 2011, at 13:45, LacaK wrote:
>>>
>>>> What do you think, can we change MinDateTime from -693593.0 to
>>>> -693594.0;
>>>> (to accept 01/01/0001 23:59:59.999)
>>>
> Negative dates are problematic as Year 0 officially does not exist. the
> first day of Year 1 is directly preceded by the last day of year 1 BC.
There exist other calendars than only the Gregorian one, with their own
oddities (Maya!), and all of them should be based on an common internal
date/time type.
IMO a MinDateTime value should be private to every calendar, if ever
needed, and the global constant should be removed.
DoDi
More information about the fpc-devel
mailing list