36 void gregorian_date(
double jd,
int *year,
int *month,
int *day,
int *hours,
37 int *minutes,
double *sec);
double days_in_year(int year)
How many days are in the given Gregorian year?
int days_in_month(int year, int month)
void gregorian_date(double jd, int *year, int *month, int *day, int *hours, int *minutes, double *sec)
Given a Julian day number, return the Gregorian date.
int is_leap(int year)
Is the given Gregorian year a leap year?
void days_to_month_day(int year, int ddd, int *month, int *day)
Given the day number of the year, return the month and day of the month.
int month_day_to_days(int year, int month, int day)
Given the month and day numbers, return the days since the first of the year.
int dayofweek(double j)
Given a Julian day number, return the day of week for that date.
long julian_day(int year, int month, int day)
Given a gregorian date in year, month and day, return the Julian day number.