astronomy

//astronomy/io.github.cosinekitty.astronomy/planetOrbitalPeriod

planetOrbitalPeriod

fun planetOrbitalPeriod(body: Body): Double

Returns the average number of days it takes for a planet to orbit the Sun.

Parameters

   
body One of the planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto.