The sun · worked out here, nothing fetched

Where the sun is,
and what the day will do.

Sunrise and sunset, solar noon and how high the sun climbs, the three twilights, golden hour and blue hour — for any of a hundred cities, your own position, or any latitude and longitude on Earth, on any day from 1901 to 2099. The sun’s path is drawn over a compass, the day as a curve, and the whole year as a field of light and dark with the solstices marked.

None of it is fetched. It is worked out in this browser from the place and the date with NOAA’s solar equations — the ones behind NOAA’s own calculator — with every crossing iterated at its own instant. Checked against the US Naval Observatory’s tables for twelve places from Singapore to McMurdo, 371 of 385 sunrises, sunsets, noons and twilights come out on the same minute, and the other fourteen one minute apart.

100 cities or any coordinates · 1901–2099 · within a minute of the US Naval Observatory · nothing fetched, nothing sent

Today

The day, in order.

Pick a place and a day; everything below follows. Each time is the moment the sun’s centre crosses a fixed height — the horizon, and six, twelve and eighteen degrees under it — and each is printed with what it means. Inside the polar circles a line that does not happen says so in words, rather than printing a time that does not exist.

The day

Working the sun out…

Degrees, north and east positive: −33.87, 151.21 is Sydney. 40.7N, 74W works too.

Clock

The figures appear once the page’s script has run. If this stays, the script did not load — reload the page.

The day, in order

    The sky

    Where it is, and the way it goes.

    The compass is a plan of the sky seen from above: the rim is the horizon, the centre is straight overhead, and the rings outside the rim are the twilights, where the sun is under the horizon but still lighting the sky. The day’s path is the heavy line; the two faint ones are the solstices, the longest and the shortest paths of the year. Drag along the curve, or use the slider, to walk the sun through the day.

    The sun’s path

    A plan view, north at the top and east to the right, as on a map. Distance from the centre is ninety degrees less the sun’s height.

    The sun now

     

     

    The day as a curve — the sun’s height, hour by hour

    The year

    A year of light and dark.

    Every day of the year is one thin column, midnight at the top and at the bottom, noon across the middle. The pale band is daylight and its height is the length of the day; the blues are the three twilights; the darkest is full night. A step in spring or autumn is the clocks changing, not the sun. Under it, the hours of daylight as a single line. Click or tap a day to move the whole page to it.

    The year of light

    • Daylight
    • Civil twilight
    • Nautical twilight
    • Astronomical twilight
    • Night

    Equinoxes and solstices

      The year’s extremes, here

      Eclipses

      The next ones, and what can be said of them.

      Each new and full moon is taken to its moment of least separation from the sun, or from the earth’s shadow, and that is measured against the sizes the real distances make that day — the same arithmetic the moon page uses. It says there is an eclipse, what kind, and when it is greatest. A lunar eclipse is seen at once by everyone with the moon above the horizon, so for those it can also say whether the moon is up where you are. A solar eclipse is seen only along a track, and this page does not compute tracks: it will never tell you that you can see one.

      Eclipses

      Solar — the moon in front of the sun

        Lunar — the moon in the earth’s shadow

          Times are the moment of greatest eclipse, to within a few minutes. Where a solar eclipse can be seen is a map of its shadow’s track, which needs the eclipse’s Besselian elements; NASA publishes those, with maps, at eclipse.gsfc.nasa.gov.

          Method

          Computed, not fetched — and checked.

          What is worked out, and how

          Everything on this page is arithmetic done in your browser; the sun’s figures make no network request at all. The sun’s declination and the equation of time come from the NOAA Global Monitoring Laboratory’s General Solar Position Calculations, the equations behind NOAA’s own solar calculator, lifted out of this site’s Clockwork page into a shared file, assets/js/sun-core.js. Each crossing is iterated: the sun’s position is recomputed at the moment of the event itself rather than at noon, which matters most near the poles.

          The equinoxes and solstices are Meeus, Astronomical Algorithms, chapter 27, with its twenty-four periodic terms. The eclipses come from moon-events.js, on the Meeus lunar and solar theories the moon page is drawn from; the moon’s height over a place adds sidereal time and the moon’s parallax. The hundred cities are Clockwork’s own register, coordinates to a hundredth of a degree; time zones are your browser’s copy of the IANA database.

          The lines, defined

          Sunrise and sunset: the sun’s centre 0.833° below the horizon — half a degree of refraction and a quarter-degree of its own radius, so the upper edge is just touching a sea horizon. Civil, nautical and astronomical twilight end at 6°, 12° and 18° below. Golden hour and blue hour have no official definition; this page uses the photographers’ commonest: golden while the sun is between 6° up and 4° down, blue between 4° and 6° down. The day length is sunset less sunrise; a day with no sunset is counted as twenty-four hours, one with no sunrise as none.

          Checked against the Naval Observatory

          Before it went in, the core was run against the US Naval Observatory’s published figures for twelve places — London, New York, Sydney, Singapore, Reykjavik, Tromsø, Honolulu, Anchorage, Quito, Cape Town, Tokyo and McMurdo — on seven dates each. Of 385 times (sunrises, sunsets, solar noons and civil twilights), 371 print the same minute as the Observatory’s and 14 are one minute apart; the largest difference underneath the rounding is about half a minute. The polar days and nights are called the same way, and 36 equinoxes and solstices from 1950 to 2099 land within a minute and a half. Run over 2026–2028 the eclipse finder returns all six solar and eight lunar eclipses in the published record, each of the right kind, and invents none.

          What it does not know

          Your height above the sea, the hills on your horizon and the air on the day. A mountain in the east makes sunrise later; a high balcony makes it earlier; unusual refraction moves it by a minute or more either way. Near the poles, where the sun skims the horizon, all of those grow, and so does the arithmetic’s own error. Days before 1901 or after 2099 are refused rather than guessed. A typed latitude and longitude has no time zone of its own here, so it is given the nominal one for its longitude — fifteen degrees to the hour — and the page says so; the zone menu offers this device’s zone and UTC instead.

          Your location

          “Use my location” asks the browser once, and only when you press it. The answer is rounded to a hundredth of a degree — about a kilometre — and kept in this browser’s own storage so the page opens on it next time. It is never sent anywhere: nothing on this page asks a server about the sun. The site’s shared furniture — the menu’s search, the assistant, the analytics every labs.llc page carries — loads as it does everywhere else and is never given your position. Your browser’s network panel will show it. Questions and corrections: labs@labs.llc.

          Every source, and what it is used for

          NOAA Global Monitoring Laboratory
          General Solar Position Calculations, the equations behind NOAA’s solar calculator (gml.noaa.gov/grad/solcalc). A United States government work, in the public domain. Used as arithmetic in sun-core.js; nothing is requested from NOAA.
          Jean Meeus, Astronomical Algorithms
          Second edition, Willmann-Bell, 1998: chapter 27 for the equinoxes and solstices, chapter 12 for sidereal time, and chapters 25 and 47 through the shared moon core. The methods and their published coefficients are implemented here; no text is reproduced.
          US Naval Observatory
          Astronomical Applications API (aa.usno.navy.mil/api), public domain. Read once, while the page was being built, to check the arithmetic against — never by this page.
          This site’s own files
          moon-core.js and moon-events.js for the moon and the eclipses; Clockwork’s register of a hundred cities for the place list. Time zones and their names come from your browser’s copy of the IANA time zone database.
          NASA eclipse web site
          eclipse.gsfc.nasa.gov is linked from the eclipse panel for tracks and maps. It is a link only; nothing is fetched from it.