How SunTimeline calculates sun times
How sunrise, sunset, twilight, golden hour and blue hour are calculated, how accurate the times are, where the data comes from and who runs SunTimeline.
Calculation method
All times are calculated from the coordinates, the date and the local time zone, using the solar position formulas of the US National Oceanic and Atmospheric Administration (NOAA), which are based on Jean Meeus' Astronomical Algorithms. Sunrise and sunset are the moments the centre of the sun is 0.833° below the horizon, which allows for average atmospheric refraction. Civil, nautical and astronomical twilight end at −6°, −12° and −18°, the blue hour lies between −4° and −8°, and the golden hour lasts until the sun is 6° high. Times are rounded to the nearest minute.
Accuracy
Automated tests check the results for places from Singapore to Svalbard, including polar day and polar night, against reference values that agree with published almanac times; a deviation of more than one minute counts as an error. Mountains, buildings and weather are not taken into account, so the sun you actually see can rise a few minutes later and set a few minutes earlier.
Data sources
Sun and moon positions are calculated by SunTimeline itself. Weather forecasts come from the German Weather Service (DWD, via Bright Sky) for Germany and from MET Norway for the rest of the world; past dates use DWD archive data or NASA POWER. Place data: GeoNames (CC BY 4.0)
Who runs SunTimeline
SunTimeline is developed and operated by Komma Commerce GmbH in Munich, Germany, and can be used free of charge without registration. Full contact details: Legal notice
Twilight, golden hour and solar noon explained · Solstices and equinoxes: longest and shortest day of the year · All places and countries