WLJS LogoWLJS Notebook

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.

Examples

MoonPhase[]
MoonPhase[DateObject[{2024, 1, 1}]]
MoonPhase["Name"]
MoonPhase[Today, "Icon"]

*See the official Wolfram Language Reference for more details.

On this page