Skip to content

charton API


charton API / @chart-on/ta / moonPhase

Function: moonPhase() ​

moonPhase(time): MoonPhase

Defined in: lunar.ts:20

Phase of the moon at time (unix seconds, like bar times), from the mean lunar cycle. True new and full moons fall within about 15 hours of it, so it suits marking the bar of an event, not timing it to the minute.

Parameters ​

time ​

number

Returns ​

MoonPhase