hconverter
C code to convert dates between Hebrew, Gregorian and Julian calendars
hc_internal.h
1 #ifndef SRC_HCONVERTER_INTERNAL_H_
2 #define SRC_HCONVERTER_INTERNAL_H_
3 #include "hconverter.h"
7 typedef struct hc_cal_impl_s {
8  long (*abs_date)(int year, int month, int day);
9  int (*compute_date)(long abs_date, hc_date *target);
10  int (*check_date)(int year, int month, int day);
11  int (*is_leap_year)(int year);
12  int (*month_length)(int year, int month);
13 } hc_cal_impl;
14 
15 extern hc_cal_impl *greg_impl;
16 extern hc_cal_impl *heb_impl;
17 extern hc_cal_impl *jul_impl;
18 
20 extern const long COMMON_BEGINNING;
21 
23 extern const int COMMON_MONTH_LENGTH[12];
24 
25 hc_cal_impl* get_calendar(hc_calendar_type calendar_type);
26 
27 #endif
Definition: hconverter.h:37
Definition: hc_internal.h:7
hc_calendar_type
Supported types of calendar.
Definition: hconverter.h:32
Public header file for hconverter library.