Hello..
I wanted to calculate day and night components flying from place A to B, given:
Lat/long of A and B.
Sunrise/sunset times at A and B.
Start time A.
End time B.
Duration = End time - start time
So it could be a duration of 7 hours and start time at A at night 2300(Sunset at A 1830) and end at B at 0600(Sunrise at B 0530). So total night time 06:30 and day time 00:30.
Other combinations like day-night, day-day, night-night also factored in.
I used the Astro lib for sunrise/sunset for A and B.
Can someone guide me on this? Thanks
I wanted to calculate day and night components flying from place A to B, given:
Lat/long of A and B.
Sunrise/sunset times at A and B.
Start time A.
End time B.
Duration = End time - start time
So it could be a duration of 7 hours and start time at A at night 2300(Sunset at A 1830) and end at B at 0600(Sunrise at B 0530). So total night time 06:30 and day time 00:30.
Other combinations like day-night, day-day, night-night also factored in.
I used the Astro lib for sunrise/sunset for A and B.
Can someone guide me on this? Thanks