[fpc-devel] MinDateTime?

Marco van de Voort marcov at stack.nl
Sun Apr 1 22:00:19 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? 

I'm not sure, but I might be related to the Y2K fix. twoyearcentury.




More information about the fpc-devel mailing list