API Reference / planetarySect · function

Function: planetarySect()

function planetarySect(body): "diurnal" | "nocturnal" | null;

The sect a body belongs to: "diurnal" (Sun, Jupiter, Saturn), "nocturnal" (Moon, Venus, Mars), or null for Mercury and bodies without a fixed sect. Whether a chart is itself day or night — the Sun above or below the horizon — is a separate question.

Parameters

ParameterTypeDescription
bodystringBody id.

Returns

"diurnal" | "nocturnal" | null

"diurnal", "nocturnal", or null.

Start building

Quickstart →