<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">wiki https://en.wikipedia.org/wiki/Julian_day says that "... Julian day number 0 assigned to the day starting at noon on January 1, 4713 BC, ..."</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">The noon means 0,5.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">V.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"><span style="font-size: 10pt;">______________________________________________________________</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">> Od: Dennis <dec12@avidsoft.com.hk><br />
> Komu: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br />
> Datum: 01.08.2017 13:14<br />
> Předmět: [fpc-pascal] why the 0.5 in the Unix Epoch (for UnixToDateTime function)<br />
></p>
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 />
_______________________________________________<br />
fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br />
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>