42 const double JD =
time.
JD();
44 ln_lnlat_posn observer;
49 ln_get_lunar_rst(JD-0.5, &observer, &moon);
59 const bool is_up = JD>moon.rise;
60 const bool is_sinking = JD>moon.transit;
61 const bool is_dn = JD>moon.set;
63 ln_get_lunar_rst(JD+0.5, &observer, &moon);
72 ln_get_lunar_equ_coords(JD, &pos);
75 ln_get_hrz_from_equ (&pos, &observer, JD, &hrz);
82 disk = ln_get_lunar_disk(JD)*100;
Adds some functionality to boost::posix_time::ptime for our needs.