pub fn morning_and_evening_twilight(
local_day: f64,
local_month: u32,
local_year: u32,
is_daylight_saving: bool,
zone_correction: i32,
geographical_long_deg: f64,
geographical_lat_deg: f64,
twilight_type: TwilightType
) -> (f64, f64, f64, f64, String)
Expand description
Calculate times of morning and evening twilight.
§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.twilight_type
– “C” (civil), “N” (nautical), or “A” (astronomical).
§Returns
am_twilight_begins_hour
– Beginning of AM twilight (hour part)am_twilight_begins_min
– Beginning of AM twilight (minutes part)pm_twilight_ends_hour
– Ending of PM twilight (hour part)pm_twilight_ends_min
– Ending of PM twilight (minutes part)status
– Calculation status