<p>You might want to find an astronomical almanach or year book. They usually have tables of sunrise and sunset times. They usually cover only one year, though and accurate times only for selected places.</p>
<p>You might also consult a tool of your choice like stellarium or use websites like <a href="https://heavens-above.com/" rel="nofollow noreferrer">Heavens Above</a> to check the sunset and sunrise times for specific locations. This allows you often arbitrary choice of a location and a large range in time.</p>
<p>Or you can use a short <a href="https://stackoverflow.com/questions/38986527/sunrise-and-sunset-time-in-python">python script</a> to generate you the output for a timeframe and location of your choice. Some possible scripts are given in <a href="https://stackoverflow.com/questions/38986527/sunrise-and-sunset-time-in-python">this answer</a>.</p>
<p>See also the <a href="https://astronomy.stackexchange.com/questions/51658/math-tool-to-compute-time-of-sunrise-and-sunset">various</a> questions and answers in this SE on <a href="https://astronomy.stackexchange.com/search?q=sunrise%20time">sunrise</a> or sunset times.</p>
<p>Either case, make sure you use a reference with a location near you or get your geographic coordinates as accurate as you can... 100km already make several minutes of difference. If you need an accuracy of only to about one or two minutes: then you can get the data from one year and re-use it for any other.</p>
<p>Generally: the rise and set times of the sun do repeat roughly yearly, but not exactly: we do have leap years which account for the fact one revolution of Earth around the Sun does not fit an exact integer number of days in a year. But one can calculate this to reasonably great precision as the equation of motions and the current positions and speed and masses of all important objects in the Solar System are reasonably-well known. And thus one can predict the future or get knowledge about it in the past up to a certain extend (this extend can well be many millenia, depending on required accuracy and property.</p>

CC BY-SA 4.0
2023-06-05T14:12:36.033Z
Thank you for the answer. I am a total bonehead when it comes to astronomy. So, pardon this question: Is the sunrise and sunset times in a particular location a yearly repetition that can be calculated? I also need about 10 years of sunrises and sunsets. Is this possible to be calculated?
No-Time-To-Day
CC BY-SA 4.0
2023-06-06T18:48:03.213Z
Almanacs and other printed materials only have rise and set times for very select locations.  They also only cover short periods of time (like 1 year).  So software is your best bet.
Greg Miller
CC BY-SA 4.0
2023-06-06T23:39:29.467Z
Yes, that's a property of almanachs. But I edited / expanded my answer with the comments here, also stressing this point.
planetmaker
CC BY-SA 4.0
2023-06-05T13:40:58.177Z
2023-06-06T23:38:52.760Z
2023-06-06T23:38:52.760Z
planetmaker
<p>As the question indicates, I would like to know the sunrise and sunset times of a location. This is to evaluate the impact of day and night variations of a time series. Is there a way to download this data? Is there some other way to divide the aforementioned time series into day and night for this purpose. I am new to this and any help would be greatly appreciated. It would be fine even if this is a paid service. Thanks.</p>

CC BY-SA 4.0
2023-06-05T13:36:00.333Z
That's not recorded. but you can calculate it with a tool of your choice, e.g. stellarium or on websites like https://www.heavens-above.com/sun.aspx?lat=0&lng=0&loc=Unspecified&alt=0&tz=UCT
planetmaker
CC BY-SA 4.0
2023-06-05T18:47:08.897Z
JPL Horizons might be the easiest and most accurate: https://ssd.jpl.nasa.gov/horizons/app.html#/
Greg Miller
CC BY-SA 4.0
2023-06-05T23:21:38.047Z
The US Naval Observatory has a site for this: https://aa.usno.navy.mil/data/RS_OneYear .  Some caveats: (1) you can only download one year of data at a time (2) the format is human-readable but it would take a bit of work to get it nice for a machine (3) they've chosen not to implement daylight savings time.
Michael Lugo
CC BY-SA 4.0
2023-06-06T18:49:55.830Z
This page may be of some use, it generates a graph of the rise and set times of the Sun (and other objects) over any specified time period. https://www.celestialprogramming.com/riseandsetgraph/index.html
Greg Miller
CC BY-SA 4.0
2023-06-07T04:06:15.853Z
Similar to the US Naval Observatory site mentioned in another comment [Geoscience Australia](https://geodesyapps.ga.gov.au/sunrise) does the same, but the output can be downloaded as a csv file. Caveat: output is for either  one day or one year, you nominate the year.
Fred
<the-sun><raw-data><sunrise><sunset>
Where can I download the historic sunrise and sunset times for a location?
No-Time-To-Day
# Where can I download the historic sunrise and sunset times for a location?

(Asked by: username_0 on 2023-06-05)

As the question indicates, I would like to know the sunrise and sunset times of a location. This is to evaluate the impact of day and night variations of a time series. Is there a way to download this data? Is there some other way to divide the aforementioned time series into day and night for this purpose. I am new to this and any help would be greatly appreciated. It would be fine even if this is a paid service. Thanks.

**Tags:** the-sun, raw-data, sunrise, sunset

> **Comments:**
> **username_1**: That's not recorded. but you can calculate it with a tool of your choice, e.g. stellarium or on websites like https://www.heavens-above.com/sun.aspx?lat=0&lng=0&loc=Unspecified&alt=0&tz=UCT  
> **username_2**: JPL Horizons might be the easiest and most accurate: https://ssd.jpl.nasa.gov/horizons/app.html#/  
> **username_3**: The US Naval Observatory has a site for this: https://aa.usno.navy.mil/data/RS_OneYear .  Some caveats: (1) you can only download one year of data at a time (2) the format is human-readable but it would take a bit of work to get it nice for a machine (3) they've chosen not to implement daylight savings time.  
> **username_2**: This page may be of some use, it generates a graph of the rise and set times of the Sun (and other objects) over any specified time period. https://www.celestialprogramming.com/riseandsetgraph/index.html  
> **username_4**: Similar to the US Naval Observatory site mentioned in another comment [Geoscience Australia](https://geodesyapps.ga.gov.au/sunrise) does the same, but the output can be downloaded as a csv file. Caveat: output is for either  one day or one year, you nominate the year.  

---

## 1 answers

### Answer by username_1 on 2023-06-05. Score: 4 | Accepted answer

You might want to find an astronomical almanach or year book. They usually have tables of sunrise and sunset times. They usually cover only one year, though and accurate times only for selected places.

You might also consult a tool of your choice like stellarium or use websites like [Heavens Above](https://heavens-above.com/) to check the sunset and sunrise times for specific locations. This allows you often arbitrary choice of a location and a large range in time.

Or you can use a short [python script](https://stackoverflow.com/questions/38986527/sunrise-and-sunset-time-in-python) to generate you the output for a timeframe and location of your choice. Some possible scripts are given in [this answer](https://stackoverflow.com/questions/38986527/sunrise-and-sunset-time-in-python).

See also the [various](https://astronomy.stackexchange.com/questions/51658/math-tool-to-compute-time-of-sunrise-and-sunset) questions and answers in this SE on [sunrise](https://astronomy.stackexchange.com/search?q=sunrise%20time) or sunset times.

Either case, make sure you use a reference with a location near you or get your geographic coordinates as accurate as you can... 100km already make several minutes of difference. If you need an accuracy of only to about one or two minutes: then you can get the data from one year and re-use it for any other.

Generally: the rise and set times of the sun do repeat roughly yearly, but not exactly: we do have leap years which account for the fact one revolution of Earth around the Sun does not fit an exact integer number of days in a year. But one can calculate this to reasonably great precision as the equation of motions and the current positions and speed and masses of all important objects in the Solar System are reasonably-well known. And thus one can predict the future or get knowledge about it in the past up to a certain extend (this extend can well be many millenia, depending on required accuracy and property.

> **Comments:**
> **username_0**: Thank you for the answer. I am a total bonehead when it comes to astronomy. So, pardon this question: Is the sunrise and sunset times in a particular location a yearly repetition that can be calculated? I also need about 10 years of sunrises and sunsets. Is this possible to be calculated?  
> **username_2**: Almanacs and other printed materials only have rise and set times for very select locations.  They also only cover short periods of time (like 1 year).  So software is your best bet.  
> **username_1**: Yes, that's a property of almanachs. But I edited / expanded my answer with the comments here, also stressing this point.  

---

