[fpc-pascal] why the 0.5 in the Unix Epoch (for UnixToDateTime function)

Dennis dec12 at avidsoft.com.hk
Tue Aug 1 13:14:09 CEST 2017


I just noticed that the definition of the constants have 0.5 in it.
Why?


from dateh.inc
const
    JulianEpoch = TDateTime(-2415018.5);

    UnixEpoch = JulianEpoch + TDateTime(2440587.5);


Dennis



More information about the fpc-pascal mailing list