find_moon_illumination(date)
Calculates the Moon's illumination on a specific <date>, expressed as a fraction or percentage. For example, during a full moon, the illumination is near 100, while during a new moon, it is close to 0
CREATE OR REPLACE FUNCTION `justfunctions.eu.find_moon_illumination`(`date` DATE)
RETURNS FLOAT64 AS (justfunctions.eu.find_moon_illumination__(
CAST(date AS STRING)
))
OPTIONS ( description = '''Calculates the Moon's illumination on a specific <date>, expressed as a fraction or percentage. For example, during a full moon, the illumination is near 100, while during a new moon, it is close to 0''')
Example
SELECT `justfunctions.eu.find_moon_illumination`("2090-01-16")
1