libcalendars  0.1.0
cl-milankovic.h File Reference
#include <stdint.h>
#include "cl-export.h"
Include dependency graph for cl-milankovic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

LIBCALENDAR_API uint8_t ml_is_leap (int16_t year)
 
LIBCALENDAR_API uint8_t ml_days_in_month (uint8_t month, int16_t year)
 
LIBCALENDAR_API uint16_t ml_days_in_year (int16_t year)
 
LIBCALENDAR_API uint8_t ml_month_in_year (int16_t year)
 
LIBCALENDAR_API uint8_t ml_is_valid (int16_t year, uint8_t month, uint16_t day)
 
LIBCALENDAR_API void ml_to_jdn (uint32_t *jd, int16_t year, uint8_t month, uint16_t day)
 
LIBCALENDAR_API void jdn_to_ml (uint32_t jdn, int16_t *year, uint8_t *month, uint16_t *day)
 
LIBCALENDAR_API void ml_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_ml (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_ml ( int16_t  gyear,
uint8_t  gmonth,
uint16_t  gday,
int16_t *  jyear,
uint8_t *  jmonth,
uint16_t *  jday 
)
LIBCALENDAR_API void jdn_to_ml ( uint32_t  jdn,
int16_t *  year,
uint8_t *  month,
uint16_t *  day 
)
LIBCALENDAR_API uint8_t ml_days_in_month ( uint8_t  month,
int16_t  year 
)
LIBCALENDAR_API uint16_t ml_days_in_year ( int16_t  year)
LIBCALENDAR_API uint8_t ml_is_leap ( int16_t  year)
LIBCALENDAR_API uint8_t ml_is_valid ( int16_t  year,
uint8_t  month,
uint16_t  day 
)
LIBCALENDAR_API uint8_t ml_month_in_year ( int16_t  year)
LIBCALENDAR_API void ml_to_gr ( int16_t  jyear,
uint8_t  jmonth,
uint16_t  jday,
int16_t *  gyear,
uint8_t *  gmonth,
uint16_t *  gday 
)
LIBCALENDAR_API void ml_to_jdn ( uint32_t *  jd,
int16_t  year,
uint8_t  month,
uint16_t  day 
)