Please enable JavaScript to view this site.


int = MoonPhaseAngle(nDate, nTimeOfDay, nMoonDataSourceIndex)


This macro function returns the phase angle between the Moon and the Sun on the date nDate at nTimeOfDay for the moon data source of position nMoonDataSourceIndex.


The function returns 10000 times the longitude angle (a result of 27825486 would mean 278.25486 degrees).

The parameter nTimeOfDay should be supplied in one millionth of a day (less than 1/10th of a second), using the function MillionFromHMS to avoid any error.

The parameter bTopocentric determines if the calculation is based on the position of the observer for nMoonDataSourceIndex, otherwise that parameter is only used for the timezone information.


See also: MoonLongitudeAngle, MoonPhaseOf, MoonPhaseAndTimeOf.


Topic 179855, last updated on 18-Apr-2020