Twilight is a complicated thing. It is partitioned into three zones. There is civil twilight, which lasts from sunset to when the center of the sun is 6 degrees, or about 12 solar diameters, below the horizon and things can no longer be clearly seen.
Then comes nautical twilight, which ends when the center of the sun is 12 degrees below the horizon and a seaman no longer discerns the break between the western sea and the sky. Finally, astronomical twilight ends when the sun is 18 degrees below the horizon, leaving the sky black enough for the inspection of distant galaxies.
