DateTimeToJulianDate should be DateTimeToJulianDay
- Lazarus/FPC Version: <Lazarus 3.0RC1 (rev lazarus_3_0_RC1-10-gfe49fef4fc) FPC 3.2.2 x86_64-win64-win32/win64>
- Operating System:
- CPU / Bitness: <64>
What happens
<The functions for astronomy have the wrong name. They calculate the "Julian day" and not a date from the Julian calendar. Same as a Gregorian date refers to the Gregorian calendar. This is a misconception which unfortunately occurs often. For example the author Meeus mentions it in his book Astronomical Algorithms chapter 7.
I would suggest to change the DATE in the names to DAY. and use only day in the describtion.
Function/procedures involved:
DateTimeToJulianDate, Converts a TDateTime value to a Julian date representation
JulianDateToDateTime, Convert a Julian date representation to a TDateTime value.
TryJulianDateToDateTime, Convert a Julian date representation to a TDateTime value.
DateTimeToModifiedJulianDate, Convert a TDateTime value to a modified Julian date representation
TryModifiedJulianDateToDateTime, Convert a modified Julian date representation to a TDateTime value.>
What did you expect
Steps to reproduce
<>