MoonPhase

MoonPhase[]
gives moon phase fraction of illumination for the current date.

MoonPhase[datespec]
gives moon phase fraction of illumination for the specified date.

MoonPhase[property]
gives the property of the moon phase for the current date.

MoonPhase[datespec,property]
gives the property of the moon phase for the specified date.

DetailsDetails

  • MoonPhase[] makes use of $TimeZone to determine your time zone.
  • Dates can be specified as a DateObject or as a string that resolves to a date.
  • If datespec is a list of dates, then the results will contain EventSeries or TimeSeries objects.
  • datespec can be specified as for compatibility with DateRange specifications.
  • MoonPhase["Fraction"] is equivalent to MoonPhase[].
  • MoonPhase can accept the following values for property:
  • "Fraction"fraction of illumination
    "SignedFraction"signed fraction of illumination
    "Name"name of the moon phase
    "Icon"icon representing the moon phase

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Find the Moon's current fraction of illumination:

In[1]:=
Click for copyable input
Out[1]=

Find the Moon's fraction of illumination on a specified date:

In[1]:=
Click for copyable input
Out[1]=

Find the name of the Moon's current phase:

In[1]:=
Click for copyable input
Out[1]=

Generate an icon of the Moon's current phase:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)