Delphi compatibilty for DateTimeToJulianDate and TryJulianDateTime
Original Reporter info from Mantis: desliem
-
Reporter name: Michel Deslierres
Original Reporter info from Mantis: desliem
- Reporter name: Michel Deslierres
Description:
The date conversion function
function DateTimeToJulianDate(const aValue: TDateTime): double;
function TryJulianDateTimeToDateTime(const AValue: Double; out ADateTime:
in dateutils.pp (dateutil.inc) do not take into consideration fractions of
days. For Delphi compatibility, Julian and modified Julian dates should include fractions of days.
Additional information:
A small demonstration program showing current versions of the two functions and suggested changes ia available here
http://michel.sigmdel.ca/program/fpl/conversion/dateconversion_en.html
Hope the uploaded diff file is ok, first attempt at creating this !