Function practical_astronomy_rust::sun::sunrise_and_sunset
source · pub fn sunrise_and_sunset(
local_day: f64,
local_month: u32,
local_year: u32,
is_daylight_saving: bool,
zone_correction: i32,
geographical_long_deg: f64,
geographical_lat_deg: f64
) -> (f64, f64, f64, f64, f64, f64, String)
Expand description
Calculate local sunrise and sunset.
§Arguments
- 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.
- geographical_long_deg – Geographical longitude, in degrees.
- geographical_lat_deg – Geographical latitude, in degrees.
§Returns
- local_sunrise_hour – Local sunrise, hour part
- local_sunrise_minute – Local sunrise, minutes part
- local_sunset_hour – Local sunset, hour part
- local_sunset_minute – Local sunset, minutes part
- azimuth_of_sunrise_deg – Azimuth (horizon direction) of sunrise, in degrees
- azimuth_of_sunset_deg – Azimuth (horizon direction) of sunset, in degrees
- status – Calculation status