19 #ifndef _LN_JULIAN_DAY_H 20 #define _LN_JULIAN_DAY_H 27 #include <libnova/ln_types.h> 52 void LIBNOVA_EXPORT ln_get_date_from_timet (time_t * t,
struct ln_date * date);
58 void LIBNOVA_EXPORT ln_get_date_from_tm (
struct tm * t,
struct ln_date * date);
64 void LIBNOVA_EXPORT ln_get_local_date (
double JD,
struct ln_zonedate * zonedate);
void LIBNOVA_EXPORT ln_get_timet_from_julian(double JD, time_t *in_time)
Calculate time_t from julian day.
Definition: julian_day.c:239
Human readable Date and time with timezone information used by libnova.
Definition: ln_types.h:86
void LIBNOVA_EXPORT ln_date_to_zonedate(struct ln_date *date, struct ln_zonedate *zonedate, long gmtoff)
convert ln_date to ln_zonedate, zero zone info
Definition: julian_day.c:389
unsigned int LIBNOVA_EXPORT ln_get_day_of_week(struct ln_date *date)
Calculate day of the week.
Definition: julian_day.c:88
void LIBNOVA_EXPORT ln_zonedate_to_date(struct ln_zonedate *zonedate, struct ln_date *date)
convert ln_zonedate to ln_date
Definition: julian_day.c:414
double LIBNOVA_EXPORT ln_get_julian_day(struct ln_date *date)
Calculate the julian day from date.
Definition: julian_day.c:40
void LIBNOVA_EXPORT ln_get_date(double JD, struct ln_date *date)
Calculate the date from the julian day.
Definition: julian_day.c:107
double LIBNOVA_EXPORT ln_get_julian_from_sys()
Calculate julian day from system time.
Definition: julian_day.c:249
void LIBNOVA_EXPORT ln_get_date_from_sys(struct ln_date *date)
Calculate date from system date.
Definition: julian_day.c:189
int LIBNOVA_EXPORT ln_get_date_from_mpc(struct ln_date *date, char *mpc_date)
Calculate the local date from the a MPC packed date.
Definition: julian_day.c:316
Human readable Date and time used by libnova.
Definition: ln_types.h:66
double LIBNOVA_EXPORT ln_get_julian_from_timet(time_t *in_time)
Calculate julian day from time_t.
Definition: julian_day.c:217
double LIBNOVA_EXPORT ln_get_julian_local_date(struct ln_zonedate *zonedate)
Calculate Julian day from local date.
Definition: julian_day.c:267
double LIBNOVA_EXPORT ln_get_julian_from_mpc(char *mpc_date)
Calculate the julian day from the a MPC packed date.
Definition: julian_day.c:371