libnova
v 0.15.0
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
src
libnova
julian_day.h
1
/*
2
* This library is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU Lesser General Public
4
* License as published by the Free Software Foundation; either
5
* version 2 of the License, or (at your option) any later version.
6
*
7
* This library is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
* Lesser General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15
*
16
* Copyright (C) 2000 - 2005 Liam Girdwood
17
*/
18
19
#ifndef _LN_JULIAN_DAY_H
20
#define _LN_JULIAN_DAY_H
21
22
#ifdef __WIN32
23
#define __WIN32__
24
#endif
25
26
#include <time.h>
27
#include <libnova/ln_types.h>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
40
double
LIBNOVA_EXPORT
ln_get_julian_day
(
struct
ln_date
* date);
41
46
void
LIBNOVA_EXPORT
ln_get_date
(
double
JD,
struct
ln_date
* date);
47
52
void
LIBNOVA_EXPORT ln_get_date_from_timet (time_t * t,
struct
ln_date
* date);
53
58
void
LIBNOVA_EXPORT ln_get_date_from_tm (
struct
tm * t,
struct
ln_date
* date);
59
64
void
LIBNOVA_EXPORT ln_get_local_date (
double
JD,
struct
ln_zonedate
* zonedate);
65
70
unsigned
int
LIBNOVA_EXPORT
ln_get_day_of_week
(
struct
ln_date
*date);
71
76
double
LIBNOVA_EXPORT
ln_get_julian_from_sys
();
77
78
83
void
LIBNOVA_EXPORT
ln_get_date_from_sys
(
struct
ln_date
* date);
84
89
double
LIBNOVA_EXPORT
ln_get_julian_from_timet
(time_t * in_time);
90
95
void
LIBNOVA_EXPORT
ln_get_timet_from_julian
(
double
JD, time_t * in_time);
96
101
double
LIBNOVA_EXPORT
ln_get_julian_local_date
(
struct
ln_zonedate
* zonedate);
102
107
int
LIBNOVA_EXPORT
ln_get_date_from_mpc
(
struct
ln_date
* date,
char
* mpc_date);
108
113
double
LIBNOVA_EXPORT
ln_get_julian_from_mpc
(
char
* mpc_date);
114
119
void
LIBNOVA_EXPORT
ln_date_to_zonedate
(
struct
ln_date
* date,
struct
ln_zonedate
* zonedate,
long
gmtoff);
120
125
void
LIBNOVA_EXPORT
ln_zonedate_to_date
(
struct
ln_zonedate
* zonedate,
struct
ln_date
* date);
126
127
#ifdef __cplusplus
128
};
129
#endif
130
131
#endif
Generated by
1.8.2