Absolutely. I've suggested DateTime::Util for helpers before. Astro::* makes sense for 'generic' astronomical calculations. DateTime specific stuff should inhabit another namespace.

Okay, that makes more sense to me. How about:


  DateTime::Util::Calc
  DateTime::Util::Astro::Sun
  DateTime::Util::Astro::Moon
  DateTime::Util::Astro::Common
  DateTime::Util::Astro::Location

::Calc would contain things that are used for calculation, such as polynomial(). ::Sun will have solar longitude related stuff. ::Moon will have lunar longitude and new moon related calculations. ::Location is a simple class to encapsulate location on earth. ::Common will have things like nutation() and ephemeris_correction().

--d



Reply via email to