Computing Sunrise and Sunset in One Step
Stephen P. Morse
, San Francisco
CHOOSE A DATE:
January
February
March
April
May
June
July
August
September
October
November
December
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
CHOOSE A TIMEZONE: Either specify the time difference from Greenwich, or select the name of a timezone
hours
minutes
0
1
2
3
4
5
6
7
8
9
10
11
12
00
15
30
45
West
East
of Greenwich
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua
Argentina
Argentina western prov
Armenia
Aruba
Ascension
Australia Central
Australia Eastern
Australia Western
Australia Lord Howe Island
Austria
Azerbaijan
Azores
Bahamas
Bahrain
Baker Island
Balearic Islands
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire
Bosnia Hercegovina
Botswana
Brazil West
Brazil Acre
Brazil East
Brazil Atlantic Islands
Brunei
Bulgaria
Burkina Faso
Burma
Burundi
Cambodia
Cameroon
Canada Yukon & Pacific
Canada Mountain
Canada Central
Canada Eastern
Canada Atlantic
Canada Newfoundland
Canary Islands
Canton Enderbury Islands
Cape Verde
Caroline Island
Cayman Islands
Central African Rep
Chad
Channel Islands
Chile
China
Christmas Islands
Colombia
Congo
Cook Islands
Costa Rica
Croatia
Cuba
Curacao
Cyprus
Czech Republic
Dahomey
Denmark
Djibouti
Dominica
Dominican Republic
Easter Island
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands
Faroe Island
Fiji
Finland
France
French Guiana
French Polynesia
Gabon
Galapagos Islands
Gambia
Gambier Island
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Greenland Thule
Greenland Scoresbysun
Grenada
Grenadines
Guadeloupe
Guam
Guatemala
Guinea
Guinea Bissau
Guyana
Haiti
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia West
Indonesia Central
Indonesia East
Iran
Iraq
Ireland
Israel
Italy
Ivory Coast
Jamaica
Japan
Johnston Island
Jordan
Kanton Island
Kazakhstan
Kenya
Kiribati
Korea
Kusaie
Kuwait
Kwajalein
Kyrgyzstan
Laos
Latvia
Lebanon
Leeward Islands
Lesotho
Liberia
Libya
Lithuania
Luxembourg
Macedonia
Madagascar
Madeira
Malawi
Malaysia
Maldives
Mali
Mallorca Islands
Malta
Mariana Island
Marquesas Islands
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Melilla
Mexico
Mexico Baja Calif Norte
Mexico Nayarit
Mexico Sinaloa
Mexico Sonora
Midway Island
Moldova
Monaco
Mongolia
Morocco
Mozambique
Myanmar
Namibia
Nauru Republic of
Nepal
Netherlands
Netherlands Antilles
Nevis Montserrat
New Caledonia
New Hebrides
New Zealand
Nicaragua
Niger
Nigeria
Niue Island
Norfolk Island
Norway
Oman
Pakistan
Palau
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pingelap
Poland
Ponape Island
Portugal
Principe Island
Puerto Rico
Qatar
Reunion
Romania
Russian Federation zone one
Russian Federation zone two
Russian Federation zone three
Russian Federation zone four
Russian Federation zone five
Russian Federation zone six
Russian Federation zone seven
Russian Federation zone eight
Russian Federation zone nine
Russian Federation zone ten
Russian Federation zone eleven
Rwanda
Saba
Samoa
San Marino
Sao Tome e Principe
Saudi Arabia
Senegal
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Society Island
Solomon Islands
Somalia
South Africa
Spain
Sri Lanka
St Helena
St Pierre & Miquelon
Sudan
Suriname
Swaziland
Sweden
Switzerland
Syria
Tahiti
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tonga
Trinidad and Tobago
Tuamotu Island
Tubuai Island
Tunisia
Turkey
Turkmenistan
Turks and Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
USA Aleutian
USA Hawaii
USA Alaska
USA Pacific
USA Mountain
USA Central
USA Eastern
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Virgin Islands
Wake Island
Wallis and Futuna Islands
Windward Islands
Yemen
Yugoslavia
Zaire Kinshasa Mbandaka
Zaire Kasai
Zaire Haut Zaire
Zaire Kivu
Zaire Shaba
Zambia
Zimbabwe
Convert to Daylight Saving Time
CHOOSE A LOCATION: Either specify the longitude and latitude, or select the name of a city
degrees
minutes
seconds
Latitude
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
North
South
of the Equator
Longitude
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
West
East
of Greenwich
First select a region
United States
Canada
Other Countries
Then select a state
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
District of Columbia
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakato
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
Finally select the city
Bakersfield AP
Barstow AP
Blythe AP
Burbank AP
Chico
Concord
Covina
Crescent City AP
Downey
El Cajon
El Cerrito AP (S)
Escondido
Eureka/Arcata AP
Fairfield-Trafis AFB
Fresno AP (S)
Hamilton AFB
Laguna Beach
Livermore
Lompoc, Vandenberg AFB
Long Beach AP
Los Angeles AP (S)
Los Angeles CO (S)
Merced-Castle AFB
Modesto
Monterey
Napa
Needles AP
Oakland AP
Oceanside
Ontario
Oxnard
Palmdale AP
Palm Springs
Pasadena
Petaluma
Pomona Co
Redding AP
Redlands
Richmond
Riverside-March AFB (S)
Sacramento AP
Salinas AP
San Bernadino, Norton AFB
San Diego AP
San Fernando
San Francisco AP
San Francisco Co
San Jose AP
San Louis Obispo
Santa Ana AP
Santa Barbara MAP
Santa Cruz
Santa Maria AP (S)
Santa Monica CIC
Santa Paula
Santa Rosa
Stockton AP
Ukiah
Visalia
Yreka
Yuba City
RESULTS:
sunrise
solar noon
sunset
errors
My original algorithm assumed a circular orbit and was therefore inaccurate
Current algorithm is derived from code appearing at
http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html
Lists of longitudes and latitudes and of world time zones were derived from tables at
http://www.jeffreyrbrown.info/qiblih/latlong.html
(formerly at http://bcca.org, the Bahai Computer and Communication Association's website)
© Stephen P. Morse, 2003