[fpc-devel] MinDateTime?

Joost van der Sluis joost at cnoc.nl
Sun Apr 1 21:46:50 CEST 2007


One of the database tests fails for all databases on handling a date of
1-1-1.

It seems like that there is a 'MinDateTime' defined in sysstrh.inc as
follows:

  MinDateTime: TDateTime = -657434.0;   { 01/01/0100 12:00:00.000 AM }

Why? Why the year 100, and why 12 AM and not 00:00(24h). In several
places an exception is raised if you try to use a TDateTime before this
date. But why this happens is not clear. Dates before the year 100 works
perfectly, except for this hard-coded exception.

So why is it there? 

Joost.




More information about the fpc-devel mailing list