sffjunkie / astral

Python calculations for the position of the sun and moon.
Apache License 2.0
237 stars 47 forks source link

Simplify julianday() function #62

Open ldo opened 3 years ago

ldo commented 3 years ago

This function can also be written a lot more simply.

ldo-julianday.patch.txt

However, I am little uncertain as to the correctness of the value. I have other code that returns a value 1 greater than this.