Re: About the next version of DateTme::Event::Sunrise

2020-06-19 Thread Rick Measham
What if you implemented it as 'spin' or 'hour' or 'spin_hour' or whatever, as a number and (optionally) exported constants to signify the algorithm? That means users could either provide their own number, or could use one of the provided. I don't write much perl any more so forgive me if I

Re: About the next version of DateTme::Event::Sunrise

2020-06-19 Thread Thomas (HFM) Wyant
Just to throw a monkey wrench into the works, they could also be 'sidereal' and 'solar' (or mean solar), since 15 degrees is the rotation of the earth in one mean solar hour, and 15.04... is the rotation of the Earth in one sidereal hour. The terminology and length of a sidereal day are from

About the next version of DateTme::Event::Sunrise

2020-06-19 Thread Jean Forget
Following the creation of RT ticket https://rt.cpan.org/Public/Bug/Display.html?id=132336 I have decided to implement the proper precise algorithm in DateTime::Event::Sunrise (already implemented in Astro::Sunrise) and to check the values with NOAA's solar calculator and with Stellarium. After I