27 #define CALCALCS_VERSION_NUMBER 1.0
37 int (*
c_dpm) ( int, int,
int * );
130 int ndays_since,
calcalcs_cal *calendar_new,
int *year_new,
int *month_new,
int *day_new );
197 #define CALCALCS_ERR_NO_YEAR_ZERO -10
198 #define CALCALCS_ERR_DATE_NOT_IN_CALENDAR -11
199 #define CALCALCS_ERR_INVALID_DAY_OF_YEAR -12
200 #define CALCALCS_ERR_NOT_A_MIXED_CALENDAR -13
201 #define CALCALCS_ERR_UNKNOWN_COUNTRY_CODE -14
202 #define CALCALCS_ERR_OUT_OF_RANGE -15
203 #define CALCALCS_ERR_NULL_CALENDAR -16
204 #define CALCALCS_ERR_INVALID_CALENDAR -17
calcalcs_cal * ccs_init_calendar(const char *calname)
void ccs_free_calendar(calcalcs_cal *calendar)
char * ccs_err_str(int error_code)
int ccs_dayssince(calcalcs_cal *calendar_orig, int year_orig, int month_orig, int day_orig, int ndays_since, calcalcs_cal *calendar_new, int *year_new, int *month_new, int *day_new)
int ccs_date2doy(calcalcs_cal *calendar, int year, int month, int day, int *doy)
int ccs_jday2date(calcalcs_cal *calendar, int jday, int *year, int *month, int *day)
int ccs_isleap(calcalcs_cal *calendar, int year, int *leap)
int ccs_doy2date(calcalcs_cal *calendar, int year, int doy, int *month, int *day)
int ccs_date2jday(calcalcs_cal *calendar, int year, int month, int day, int *jday)
int ccs_dpm(calcalcs_cal *calendar, int year, int month, int *dpm)
int ccs_set_xition_date(calcalcs_cal *calendar, int year, int month, int day)
int ccs_get_xition_date(const char *country_code, int *year, int *month, int *day)
static std::string calendar(const File *input_file, const Config &config, const Logger &log)
int(* c_jday2date)(int, int *, int *, int *)
struct cccalendar * late_cal
struct cccalendar * early_cal
int(* c_date2jday)(int, int, int, int *)
int(* c_isleap)(int, int *)
int(* c_dpm)(int, int, int *)