";
echo "| Day length | ";
echo strtime($daylen) . " |
";
echo "| ???With civil twilight | ";
echo strtime($civlen) . " |
\n";
echo "| ???With nautical twilight | ";
echo strtime($nautlen) . " |
\n";
echo "| ???With astronomical twilight | ";
echo strtime($astrlen) . " |
\n";
echo "| Length of twilight: civil | ";
echo strtime(($civlen-$daylen)/2.0) . " |
\n";
echo "| ???nautical | ";
echo strtime(($nautlen-$daylen)/2.0) . " |
\n";
echo "| ???astronomical | ";
echo strtime(($astrlen-$daylen)/2.0) . " |
\n";
echo "| Sun at south | ";
echo strtime(($rise+$set)/2.0) . " UT |
\n";
switch( $rs ) {
case 0:
echo "| Sun rises | ";
echo strtime($rise) . " UT |
";
echo "| Sun sets | ";
echo strtime($set) . " UT |
";
break;
case +1:
echo "| Sun above horizon | ? |
";
break;
case -1:
echo "| Sun below horizon | ? |
";
break;
}
switch( $civ ){
case 0:
echo "| Civil twilight starts | ";
echo strtime($civ_start) . " UT |
";
echo "| Civil twilight ends | ";
echo strtime($civ_end) . " UT |
";
break;
case +1:
echo "| Never darker than civil
twilight | ? |
";
break;
case -1:
echo "| Never as bright as civil twilight | ? |
";
break;
}
switch( $naut ) {
case 0:
echo "| Nautical twilight starts | ";
echo strtime($naut_start) . " UT |
";
echo "| Nautical twilight ends | ";
echo strtime($naut_end) . " UT |
";
break;
case +1:
echo "| Never darker than nautical twilight | ? |
";
break;
case -1:
echo "| Never as bright as nautical twilight | ? |
";
break;
}
switch( $astr ) {
case 0:
echo "| Astronomical twilight starts | ";
echo strtime($astr_start) . " UT |
";
echo "| Astronomical twilight ends | ";
echo strtime($astr_end) . " UT |
";
break;
case +1:
echo "| Never darker than astronomical
twilight | ? |
";
break;
case -1:
echo "| Never as bright as astronomical
twilight | ? |
";
break;
}
echo "
";
endif;
?>