aldus.nexus

Day and night

The Earth right now: the line between day and night, three bands of twilight, the Sun and Moon overhead and city lights coming on. Every city I've visited keeps its own clock. Wind the time machine to watch the seasons swing.

world clock

    The numbers

    day length over the yearpin cities from the city card
    sun altitude today
    analemmathe Sun at one clock time, all year

    How it works

    The Earth's axis is tilted 23.44° to its orbit, so over a year the point where the Sun is straight overhead (the subsolar point) slides between the tropics. Its latitude is the Sun's declination δ. Its longitude comes from the clock: the Earth turns 15° an hour, so at 12:00 UTC the Sun is over Greenwich, give or take the equation of time. That correction, up to about 16 minutes either way, comes from the tilt and from the orbit being an ellipse (the Earth moves fastest in January). Plot where the Sun stands at the same clock time every day and you get the figure of eight in the analemma chart.

    The positions use the NOAA solar calculator's equations: from the Julian date, the Sun's mean longitude and anomaly, the equation of centre, the apparent longitude and the obliquity give δ and the equation of time. The hour angle ω is how far the Earth has turned since local solar noon. With the latitude φ, those three give the Sun's altitude anywhere, and every art pixel of the map is shaded from that altitude: day, then civil (to -6°), nautical (to -12°) and astronomical (to -18°) twilight, then night, with a little ordered dithering at each edge. Lights scattered around the atlas's towns and capitals come on as the Sun drops below -3°.

    The terminator is the circle 90.833° from the subsolar point, not 90°: the air bends sunlight over the horizon by about 0.567°, and sunrise counts from the Sun's top edge, 0.266° above its centre. That is why every city's day is a few minutes longer than its night at an equinox, when the terminator runs straight from pole to pole. Setting the altitude to -0.833° in the sunrise equation gives the hour angle of sunrise and sunset, and solar noon sits halfway between.

    Clocks keep zone time, not solar time. A zone is a band of longitude sharing one clock, often bent by borders and summer time, so the Sun can peak well after 12:00: Madrid keeps central European time though it lies west of Greenwich, and all of China keeps Beijing's clock. Each city card shows the gap. Local times come from the browser's time zone database through Intl.DateTimeFormat, so summer time changes land on the right day.

    The Moon uses the main terms of Meeus's lunar series (good to a few hundredths of a degree), drawn as seen in the sky with north up, its bright limb turned towards the Sun. For the same sky from the ground, see live sky; for the shading of a whole world in light, see planet forge; and for the cities' own street plans, see street compasses.

    Three angles (latitude, declination and hour angle) are enough to light the whole world at any moment in history.

    sin h = sin φ sin δ + cos φ cos δ cos ωthe Sun's altitude h at latitude φ, declination δ and hour angle ω
    cos ω₀ = (sin h₀ - sin φ sin δ) / (cos φ cos δ)the sunrise equation, with h₀ = -0.833°; day length = 2ω₀ / 15° per hour; no answer means midnight sun or polar night
    ω = 15° × (t_solar - 12 h)
    t_solar = t_UTC + 4 min × λ + EoThour angle from apparent solar time; λ is the longitude in degrees east, EoT the equation of time
    sin δ = sin ε sin λ☉declination from the obliquity ε ≈ 23.44° and the Sun's ecliptic longitude λ☉
    terminator: angular distance 90.833° from the subsolar point90° plus refraction (0.567°) and the Sun's radius (0.266°); twilight bands at 96°, 102° and 108°