1 /*----------------------------------------------------------------------------+
2  | Sunrise/Sunset functions for Heyu.                                         |
3  |                                                                            |
4  | The solar computation functions below were programmed by Charles W.        |
5  | Sullivan utilizing the techniques and astronomical constants published by  |
6  | Roger W. Sinnott in the August 1994 issue of Sky & Telescope Magazine,     |
7  | Page 84.                                                                   |
8  +----------------------------------------------------------------------------*/
9 
10 /*
11  *   This program is free software: you can redistribute it and/or modify
12  *   it under the terms of the GNU General Public License as published by
13  *   the Free Software Foundation, either version 3 of the License, or
14  *   (at your option) any later version.
15  *
16  *   This program is distributed in the hope that it will be useful,
17  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *   GNU General Public License for more details.
20  *
21  *   You should have received a copy of the GNU General Public License
22  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
23  *
24  */
25 
26 /* Return codes for function suntimes() */
27 #define NORMAL_SUN    0
28 #define DOWN_ALL_DAY  1
29 #define UP_ALL_DAY    2
30 #define NO_SUNRISE    4
31 #define NO_SUNSET     8
32 
33 #define FMT_PORTRAIT  0
34 #define FMT_LANDSCAPE 1
35 
36 #define TIMEMODE_STANDARD   0
37 #define TIMEMODE_CIVIL      1
38 
39 int suntimes ( double, double, long int, long int, int, int,
40               int *, int *, double *, double * );
41 long int greg2jd ( int, int, int );
42 int display_sun_table (FILE *, int, long, int, int, int, int, int, int, int);
43 int display_sun_table_wide (FILE *, int, long, int, int, int, int, int, int, int);
44 int local_dawndusk ( time_t, time_t *, time_t * );
45 
46 
47