KHolidays 5.109.0
|
Represents and manages a Lunar Phase. More...
#include <lunarphase.h>
Public Types | |
enum | Phase { NewMoon , FirstQuarter , LastQuarter , FullMoon , None , WaxingCrescent , WaxingGibbous , WaningGibbous , WaningCrescent } |
Phases of the moon, in traditional English notation. More... | |
Static Public Member Functions | |
static Phase | phaseAtDate (const QDate &date) |
Return the lunar phase for the specified Gregorian date. | |
static QString | phaseName (Phase phase) |
Return the string representation of phase. | |
static QString | phaseNameAtDate (const QDate &date) |
Return the lunar phase as a text string for the specified date. | |
Represents and manages a Lunar Phase.
A Lunar Phase can be one of the following:
A very good description of the lunar phases can be read at the Wikipedia, https://en.wikipedia.org/wiki/Lunar_phase
Phases of the moon, in traditional English notation.
The phase None
is used only as an error indicator, for instance in phase().
|
static |
Return the lunar phase for the specified Gregorian date.
The enum 'None' is returned if one of the supported phases does not occur on the date.
date | compute the lunar phase for the specified Gregorian date. |
|
static |
Return the string representation of phase.
phase | the lunar phase. |
|
static |
Return the lunar phase as a text string for the specified date.
A null string is returned if one of the supported phases does not occur on the date.
date | compute the lunar phase for the specified Gregorian date. |