test case 0:
date: 151010 legs: KLAX-KSFO time out: 0010Ztime in: 0231ZDate: 1970-01-02
Time Out: 0010Z KLAX (GMT-8) sunrise: 07:02L sunset: 16:53L
Time In: 0231Z KSFO(GMT-8) sunrise: 07:28L sunset: 16:59L
Flight Time: 2:21 (2.4 hours) 141 mins
Day: 0 mins
Night: 2:21 (2.4 hours) 141 mins
Scenario: all night
start pos: 33.94253540 -118.40807343
end pos: 37.61897278 -122.37488556 elasped time result: 2:21 (2.4 hours) 141 mins (expected: 141) PASS
day time result: 0 mins (expected: 0) PASS
night time result: 2:21 (2.4 hours) 141 mins (expected: 141) PASS
test case 1:
date: 150101 legs: KDCA-KIAD time out: 1359Ltime in: 1631LDate: 1970-01-02
Time Out: 1359L KDCA (GMT-5) sunrise: 07:30L sunset: 16:54L
Time In: 1631L KIAD(GMT-5) sunrise: 07:32L sunset: 16:56L
Flight Time: 2:32 (2.5 hours) 152 mins
Day: 2:32 (2.5 hours) 152 mins
Night: 0 mins
Scenario: all day
start pos: 38.85208130 -77.03771973
end pos: 38.94453430 -77.45581055 elasped time result: 2:32 (2.5 hours) 152 mins (expected: 152) PASS
day time result: 2:32 (2.5 hours) 152 mins (expected: 152) PASS
night time result: 0 mins (expected: 0) PASS
test case 2:
date: 150101 legs: LEMD-LHBP time out: 0500Ztime in: 0808ZDate: 1970-01-02
Time Out: 0500Z LEMD (GMT+1) sunrise: 08:41L sunset: 17:55L
Time In: 0808Z LHBP(GMT+1) sunrise: 07:34L sunset: 15:59L
Flight Time: 3:08 (3.1 hours) 188 mins
Day: 1:34 (1.6 hours) 94 mins
Night: 1:34 (1.6 hours) 94 mins
Scenario: night into day
start pos: 40.49355698 -3.56676412
end pos: 47.43693161 19.25559235 elasped time result: 3:08 (3.1 hours) 188 mins (expected: 188) PASS
day time result: 1:34 (1.6 hours) 94 mins (expected: 94) PASS
night time result: 1:34 (1.6 hours) 94 mins (expected: 94) PASS
test case 3:
date: 150330 legs: EGGW-OERK time out: 1355Ztime in: 2020ZDate: 1970-01-02
Time Out: 1355Z EGGW (GMT+0) sunrise: 08:13L sunset: 15:58L
Time In: 2020Z OERK(GMT+3) sunrise: 06:41L sunset: 17:13L
Flight Time: 6:25 (6.4 hours) 385 mins
Day: 0:18 (0.3 hours) 18 mins
Night: 6:07 (6.1 hours) 367 mins
Scenario: day into night
start pos: 51.87472153 -0.36833301
end pos: 24.95763969 46.69877625 elasped time result: 6:25 (6.4 hours) 385 mins (expected: 385) PASS
day time result: 0:18 (0.3 hours) 18 mins (expected: 18) PASS
night time result: 6:07 (6.1 hours) 367 mins (expected: 367) PASS
test case 4:
date: 150330 legs: VHHH-PANC time out: 2144Ztime in: 0716ZDate: 1970-01-02
Time Out: 2144Z VHHH (GMT+8) sunrise: 07:07L sunset: 17:49L
Time In: 0716Z PANC(GMT-9) sunrise: 10:20L sunset: 15:48L
Flight Time: 9:32 (9.5 hours) 572 mins
Day: 0 mins
Night: 9:32 (9.5 hours) 572 mins
Scenario: all night
start pos: 22.30891991 113.91460419
end pos: 61.17436218 -149.99636841 elasped time result: 9:32 (9.5 hours) 572 mins (expected: 572) PASS
day time result: 0 mins (expected: 18)
FAIL
night time result: 9:32 (9.5 hours) 572 mins (expected: 367)
FAIL