|
NAMEeasterg , easterog ,
easteroj , gdate ,
jdate , ndaysg ,
ndaysj , week ,
weekday —
Calendar arithmetic for the Christian era
LIBRARYCalendar Arithmetic Library (libcalendar, -lcalendar)SYNOPSIS#include <calendar.h>
struct date *
struct date *
struct date *
struct date *
struct date *
int
int
int
int
DESCRIPTIONThese functions provide calendar arithmetic for a large range of years, starting at March 1st, year zero (i.e., 1 B.C.) and ending way beyond year 100000.Programs should be linked with
The functions The functions The The The The two calendars differ by the definition of the leap year. The Julian Calendar says every year that is a multiple of four is a leap year. The Gregorian Calendar excludes years that are multiples of 100 and not multiples of 400. This means the years 1700, 1800, 1900, 2100 are not leap years and the year 2000 is a leap year. The new rules were inaugurated on October 4, 1582 by deleting ten days following this date. Most catholic countries adopted the new calendar by the end of the 16th century, whereas others stayed with the Julian Calendar until the 20th century. The United Kingdom and their colonies switched on September 2, 1752. They already had to delete 11 days. The function The function The structure date is defined in
int y; /∗ year (0000 - ????) ∗/ int m; /∗ month (1 - 12) ∗/ int d; /∗ day of month (1 - 31) ∗/ The year zero is written as "1 B.C." by historians and "0" by astronomers and in this library. SEE ALSOncal(1), strftime(3)STANDARDSThe week number conforms to ISO 8601: 1988.HISTORYThecalendar library first appeared in
FreeBSD 3.0.
AUTHORSThis manual page and the library was written by Wolfgang Helbig <helbig@FreeBSD.org>.BUGSThe library was coded with great care so there are no bugs left.
Visit the GSP FreeBSD Man Page Interface. |