Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 1 KB

search-moon-quarter.md

File metadata and controls

21 lines (12 loc) · 1 KB

//astronomy/io.github.cosinekitty.astronomy/searchMoonQuarter

searchMoonQuarter

fun searchMoonQuarter(startTime: Time): MoonQuarterInfo

Finds the first lunar quarter after the specified date and time. A lunar quarter is one of the following four lunar phase events: new moon, first quarter, full moon, third quarter. This function finds the lunar quarter that happens soonest after the specified date and time.

To continue iterating through consecutive lunar quarters, call this function once, followed by calls to #NextMoonQuarter as many times as desired.

See moonQuartersAfter for convenient iteration of consecutive quarter phases.

Return

A MoonQuarterInfo object reporting the next quarter phase and the time it will occur.

Parameters

startTime The date and time at which to start the search.