Sun or Moon Rise/Set Table for One Year
Astronomical Applications Dept. Astronomical Applications Dept.
Skip navigation

Important!  Please read the Notes section.

This page provides a way for you to obtain a table of the times of sunrise/sunset, moonrise/moonset, or the beginning and end of twilight, for any year between 1700 and 2100.

You can obtain a table for any location worldwide by following these simple steps:

Form A - U.S. Cities or Towns

Specify year, type of table, and place:




The place name you enter above must be a city or town in the U.S. The place's location will be retrieved from a file with over 22,000 places listed. Either upper- or lower-case letters or a combination can be used. Spell out place name prefixes, as in "East Orange", "Fort Lauderdale", "Mount Vernon", etc. The only exception is "St.", which is entered as an abbreviation with a period, as in "St. Louis". You need only enter as many characters as will unambiguously identify the place. The city or town name may be left blank if State or Territory is District of Columbia.

Form B - Locations Worldwide

Specify year, type of table, and place:



The place name you enter above is merely a label for the table header; you can enter any identifier, or none (avoid using punctuation characters). The data will be calculated for the longitude and latitude you enter below.

Time Zone:    

For locations that require it, the time zone can be entered in hours and a fraction. For example, for locations in India, the time zone may be entered as 5.5 hours east of Greenwich. The time zone field can accommodate up to five characters.

Need coordinates?  Try NGA's GEOnet Names Server (GNS).
Need U.S. coordinates?  Try the USGS Geographic Names Information System (GNIS).
Need a time zone?  Try the time zone map.



How to Print the Table

The table is 134 characters wide, so to print it you must use landscape orientation and 8-point (smallest) type. Consult your browser's documentation for details on how to change the font/text size. An alternative scheme is to save the table to a file on your computer (for example, in Internet Explorer, click on Page then Save As...), then use your favorite word processor or text editor to print it.

How to Import the Table into a Spreadsheet

Open your favorite text editor, then copy the numerical part of the table (i.e., do not copy the table headings) from your browser and paste it into the text editor. Save the data as a text file.

In Excel 2003, click Data on the menu bar, then Import External Data, then Import Data. Select your saved text file. Choose fixed width in the dialog box. [In Excel 2004 for Mac, the commands are Data -> Get External Data -> Import Text File]

In Excel 2007, click Data on the menu bar, then From Text. Select your saved text file. Choose fixed width in the dialog box.


For information on the definitions of rise, set, and twilight, see Rise, Set, and Twilight Definitions in FAQ.

Time Zones

The times of the phenomena are presented in the standard time of the place requested, using the current time zone of the place. Standard time in time zones was introduced in the U.S. in 1883, but the time zone boundaries have evolved considerably since then, with places shifting from one zone to another. There is no attempt here to track such changes.

Daylight Time

Daylight time is not implemented in this program. When daylight time is in use, add one hour to the times listed in the table.

Legal Use of the Data in the Table

Please see Astronomical Data Used for Litigation if you are interested in using for legal purposes the data produced by this service.

Sunset photo taken from Nags Head, North Carolina, by George Kaplan.

Back to . . .     top     Form A     Form B