pub fn sun_distance_and_angular_size(
    lct_hours: f64,
    lct_minutes: f64,
    lct_seconds: f64,
    local_day: f64,
    local_month: u32,
    local_year: u32,
    is_daylight_saving: bool,
    zone_correction: i32
) -> (f64, f64, f64, f64)
Expand description

Calculate distance to the Sun (in km), and angular size.

§Arguments

  • lct_hours – Local civil time, in hours.
  • lct_minutes – Local civil time, in minutes.
  • lct_seconds – Local civil time, in seconds.
  • local_day – Local date, day part.
  • local_month – Local date, month part.
  • local_year – Local date, year part.
  • is_daylight_saving – Is daylight savings in effect?
  • zone_correction – Time zone correction, in hours.

§Returns

  • sun_dist_km – Sun’s distance, in kilometers
  • sun_ang_size_deg – Sun’s angular size (degrees part)
  • sun_ang_size_min – Sun’s angular size (minutes part)
  • sun_ang_size_sec – Sun’s angular size (seconds part)