Actually the Julian calendar started at noon, the 0.5 is added to get to midnight. The Julian calendar was developed for astronomers, who view the sky when it gets dark and want all observing to be referenced to the same date. Us normal people start our day at midnight so we have to add the extra half day. -- Paul
On Aug 1, 2017 7:14 AM, "Dennis" <de...@avidsoft.com.hk> wrote: > 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 > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal