Please enable JavaScript to view this site.

 

Navigation: Appendices > Astronomy

Moon Phase Indices

Scroll Prev Up Next More

The possible values of the indices corresponding to Moon phases are:

 

0

No moon phase of the type specified on nDate.

1

New Moon

2

Waxing Crescent

3

First Quarter

4

Waxing Gibbous

5

Full Moon

6

Waning Gibbous

7

Last quarter

8

Waning Crescent

 

These indices are returned directly by MoonPhaseOf and can be extracted from the result of MoonPhaseAndTimeOf using div 1000000. They are also used as input parameters to MoonPhaseName and MoonPhaseSymbol.

 

Some of the above functions have a bUseEighths parameter:

 

•If bUseEighths is false, then only the four main phases are considered: New Moon (1), First Quarter (3), Full Moon (5), and Last Quarter (7).

•If bUseEighths is true, the intermediate phases (2, 4, 6, and 8) are also considered. This is an extremely rarely used setting.

 

The indices are not renumbered when bUseEighths is false. A result of 0 means that none of the selected phases occurs on nDate.

 


Topic 182555, last updated on 11-Oct-2026