pub fn moon_phase(
    lct_hour: f64,
    lct_min: f64,
    lct_sec: f64,
    is_daylight_saving: bool,
    zone_correction_hours: i32,
    local_date_day: f64,
    local_date_month: u32,
    local_date_year: u32,
    accuracy_level: String
) -> (f64, f64)
Expand description

Calculate Moon phase and position angle of bright limb.

§Arguments

  • lct_hour – Local civil time, in hours.
  • lct_min – Local civil time, in minutes.
  • lct_sec – Local civil time, in seconds.
  • is_daylight_saving – Is daylight savings in effect?
  • zone_correction_hours – Time zone correction, in hours.
  • local_date_day – Local date, day part.
  • local_date_month – Local date, month part.
  • local_date_year – Local date, year part.
  • accuracy_level – “A” (approximate) or “P” (precise)

§Returns

  • moon_phase – Phase of Moon, between 0 and 1, where 0 is New and 1 is Full.
  • pa_bright_limb_deg – Position angle of the bright limb (degrees)