19#define LEAP_MCM 693961
241 return leap_from(date.year, date.month, date.day);
static bool equal_leap_off(struct leap_off lhs, struct leap_off rhs)
Compares two leap_off structures for equality.
int leap_thru(int year)
Leap years completed from year 0 up to but not including the first day of the specified year.
struct leap_off leap_from(int year, int month, int day)
Day from year, month and day of month.
static int leap_abs_from_date(struct leap_date date)
Absolute date from leap_date structure.
static struct leap_date leap_date_from_off(struct leap_off off)
Date from leap offset.
int leap_mday(int year, int month)
Day of month from year and month.
static struct leap_off leap_from_date(struct leap_date date)
Day from leap date.
bool is_leap(int year)
Determine if a year is a leap year.
struct leap_date leap_abs_date(int day_off)
Absolute date from day of year.
static bool equal_leap_date(struct leap_date lhs, struct leap_date rhs)
Compares two leap_date structures for equality.
int leap_add(int year)
Adds one for a leap year otherwise zero.
int leap_day(int year)
Counts leap-adjusted days up to some year.
int leap_yday(int year, int month)
Day of year from year and month.
int leap_abs_from(int year, int month, int day)
Absolute date from year, month, and day of month.
Leap year date structure.
int month
Month of year starting from 1 for January.
int day
Day of month starting from 1 for the first day of the month.
Leap offset by year and day.
int day
Day of year offset.