Function Repository Resource:

# MoonPhaseDate

Compute the date of a specific phase of the Moon

Contributed by: Jeff Bryant
 ResourceFunction["MoonPhaseDate"][] computes the date of the next full moon. ResourceFunction["MoonPhaseDate"][date] computes the date of the next full moon after the specified date. ResourceFunction["MoonPhaseDate"][phase] computes the date of the next phase of the Moon. ResourceFunction["MoonPhaseDate"][date,phase] computes the date of the next specified phase of the Moon after the specified date. ResourceFunction["MoonPhaseDate"][dateinterval] computes the dates of the full moons within the specified dateinterval. ResourceFunction["MoonPhaseDate"][dateinterval,phase] computes the dates of the specified phase of the Moon within the specified dateinterval.

## Details and Options

The values accepted for phase are "Full", "New", "FirstQuarter", "LastQuarter", "WaxingCrescent", "WaningCrescent", "WaxingGibbous", "WaningGibbous" or any of the entities from the "MoonPhase" entity type.
The date should be a DateObject.
If a date isn't specified, then Now is assumed.
ResourceFunction["MoonPhaseDate"][] is equivalent to ResourceFunction["MoonPhaseDate"][Now,"Full"].
ResourceFunction["MoonPhaseDate"] accepts the same options as DateObject in addition to TimeDirection.
The TimeDirection option accepts the following values:
 1 next event (default) 0 nearest event -1 previous event
TimeDirection is irrelevant when a date interval is specified.

## Examples

### Basic Examples (6)

Find the time of the next full moon:

 In[1]:=
 Out[1]=

Next new moon:

 In[2]:=
 Out[2]=

Next full moon after a given date:

 In[3]:=
 Out[3]=

Next new moon after a given date:

 In[4]:=
 Out[4]=

Find all the full moons within a date interval:

 In[5]:=
 Out[5]=

Find all the new moons within a date interval:

 In[6]:=
 Out[6]=

### Scope (16)

Next first-quarter moon:

 In[7]:=
 Out[7]=

Next last-quarter moon:

 In[8]:=
 Out[8]=

Next waxing crescent moon:

 In[9]:=
 Out[9]=

Next waning crescent moon:

 In[10]:=
 Out[10]=

Next waxing gibbous moon:

 In[11]:=
 Out[11]=

Next waning gibbous moon:

 In[12]:=
 Out[12]=

Next first-quarter moon after a given date:

 In[13]:=
 Out[13]=

Next last-quarter moon after a given date:

 In[14]:=
 Out[14]=

Next waxing crescent moon after a given date:

 In[15]:=
 Out[15]=

Next waning crescent moon after a given date:

 In[16]:=
 Out[16]=

Next waxing gibbous moon after a given date:

 In[17]:=
 Out[17]=

Next waning gibbous moon after a given date:

 In[18]:=
 Out[18]=

Find all the first-quarter moons within a date interval:

 In[19]:=
 Out[19]=

Find all the last-quarter moons within a date interval:

 In[20]:=
 Out[20]=

Find all the waxing crescent moons within a date interval:

 In[21]:=
 Out[21]=

Find all the waning crescent moons within a date interval:

 In[22]:=
 Out[22]=

Find all the waxing gibbous moons within a date interval:

 In[23]:=
 Out[23]=

Find all the waning gibbous moons within a date interval:

 In[24]:=
 Out[24]=

### Options (9)

Compute the next full moon in a specific time zone:

 In[25]:=
 Out[25]=

Compute the nearest full moon:

 In[26]:=
 Out[26]=

Compute the previous full moon:

 In[27]:=
 Out[27]=

Compute the nearest new moon:

 In[28]:=
 Out[28]=

Compute the previous new moon:

 In[29]:=
 Out[29]=

Compute the nearest first quarter moon:

 In[30]:=
 Out[30]=

Compute the previous first quarter moon:

 In[31]:=
 Out[31]=

Compute the nearest last quarter moon:

 In[32]:=
 Out[32]=

Compute the previous last quarter moon:

 In[33]:=
 Out[33]=

## Version History

• 2.0.2 – 02 February 2021
• 2.0.1 – 30 October 2020
• 2.0.0 – 29 October 2020
• 1.0.0 – 29 October 2020