[fpc-devel] negative TDateTime values and MinDateTime

Marco van de Voort marcov at stack.nl
Thu Aug 4 13:53:29 CEST 2011


In our previous episode, Felipe Monteiro de Carvalho said:
[ Charset ISO-8859-1 unsupported, converting... ]
> On Wed, Aug 3, 2011 at 6:55 AM, LacaK <lacak at zoznam.sk> wrote:
> > So if this constant can not be changed, then I must write workaround for
> > date '01/01/0001' and do not add time part to this date.
> 
> The constant was already changed once, and no-one complained in the
> following years, so my guess is that it could be changed again or even
> eliminated.
> 
> See:
> 
> http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg07984.html

I think sacrificing dates from the year 1 to 100 AD to keep old two digit
databases working is a small price to pay.

If the test doesn't take this into account, the test is simply wrong.

Maybe the difference between  "datetime" and "time" or "datetime-difference"
must be strengthened.



More information about the fpc-devel mailing list