How can I calculate the illuminated fraction of the Moon using Python3 ?
Date = datetime.date.today()
How can I calculate the illuminated fraction of the Moon using Python3 ?
Date = datetime.date.today()
Okay, I have found the answer :
import datetime
import ephem
date = datetime.date.today()
m = ephem.Moon(date)
print(m.moon_phase)