Learn R Programming

astronomyengine (version 0.1.0)

astro_search_moon_quarter: Find First Lunar Quarter

Description

Finds the first lunar quarter (new moon, first quarter, full moon, or third quarter) after the specified date and time.

Usage

astro_search_moon_quarter(start_time)

Value

A list with:

quarter

Integer 0-3: 0 = new moon, 1 = first quarter, 2 = full moon, 3 = third quarter.

time

POSIXct datetime of the lunar quarter.

Arguments

start_time

A POSIXct datetime to begin the search.

Examples

Run this code
start <- as.POSIXct("2025-02-19", tz = "UTC")
astro_search_moon_quarter(start)

Run the code above in your browser using DataLab