<div dir="auto">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</div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 1, 2017 7:14 AM, "Dennis" <<a href="mailto:dec12@avidsoft.com.hk">dec12@avidsoft.com.hk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I just noticed that the definition of the constants have 0.5 in it.<br>
Why?<br>
<br>
<br>
from dateh.inc<br>
const<br>
   JulianEpoch = TDateTime(-2415018.5);<br>
<br>
   UnixEpoch = JulianEpoch + TDateTime(2440587.5);<br>
<br>
<br>
Dennis<br>
______________________________<wbr>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.or<wbr>g</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cg<wbr>i-bin/mailman/listinfo/fpc-pas<wbr>cal</a></blockquote></div></div>