libcalendars  0.1.0
cl-jewish.c File Reference
#include <math.h>
#include "cl-jewish.h"
#include "cl-gregorian.h"
#include "cl-math.h"
Include dependency graph for cl-jewish.c:

Functions

LIBCALENDAR_API uint8_t jw_is_leap (int16_t year)
 
LIBCALENDAR_API uint8_t jw_days_in_month (uint8_t month, int16_t year)
 
LIBCALENDAR_API uint16_t jw_days_in_year (int16_t year)
 
LIBCALENDAR_API uint8_t jw_month_in_year (int16_t year)
 
LIBCALENDAR_API uint8_t jw_is_valid (int16_t year, uint8_t month, uint16_t day)
 
LIBCALENDAR_API void jw_to_jdn (uint32_t *jd, int16_t year, uint8_t month, uint16_t day)
 
LIBCALENDAR_API void jdn_to_jw (uint32_t jd, int16_t *year, uint8_t *month, uint16_t *day)
 
LIBCALENDAR_API void jw_to_gr (int16_t jyear, uint8_t jmonth, uint16_t jday, int16_t *gyear, uint8_t *gmonth, uint16_t *gday)
 
LIBCALENDAR_API void gr_to_jw (int16_t gyear, uint8_t gmonth, uint16_t gday, int16_t *jyear, uint8_t *jmonth, uint16_t *jday)
 

Function Documentation

LIBCALENDAR_API void gr_to_jw ( int16_t  gyear,
uint8_t  gmonth,
uint16_t  gday,
int16_t *  jyear,
uint8_t *  jmonth,
uint16_t *  jday 
)
LIBCALENDAR_API void jdn_to_jw ( uint32_t  jd,
int16_t *  year,
uint8_t *  month,
uint16_t *  day 
)
LIBCALENDAR_API uint8_t jw_days_in_month ( uint8_t  month,
int16_t  year 
)
LIBCALENDAR_API uint16_t jw_days_in_year ( int16_t  year)
LIBCALENDAR_API uint8_t jw_is_leap ( int16_t  year)
LIBCALENDAR_API uint8_t jw_is_valid ( int16_t  year,
uint8_t  month,
uint16_t  day 
)
LIBCALENDAR_API uint8_t jw_month_in_year ( int16_t  year)
LIBCALENDAR_API void jw_to_gr ( int16_t  jyear,
uint8_t  jmonth,
uint16_t  jday,
int16_t *  gyear,
uint8_t *  gmonth,
uint16_t *  gday 
)
LIBCALENDAR_API void jw_to_jdn ( uint32_t *  jd,
int16_t  year,
uint8_t  month,
uint16_t  day 
)