̾??
easterg, easterog,
    easteroj, gdate,
    jdate, ndaysg,
    ndaysj, week,
    weekday —
    ?????Ǥ????դ??α黻
Calendar Arithmetic Library (libcalendar,
    -lcalendar)
<calendar.h>
    struct date *
    easterg(int
    year, struct date *dt) struct
    date *
    easterog(int
    year, struct date *dt) struct
    date *
    easteroj(int
    year, struct date *dt) struct
    date * gdate(int nd,
    struct date *dt) struct date *
    jdate(int nd,
    struct date *dt) int
    ndaysg(struct date *dt)
    int
    ndaysj(struct date *dt)
    int week(int
    nd, int *year) int
    weekday(int nd)
???????δؿ??ϡ????? 0 ǯ (???ʤ???
    B.C. 1 ǯ) 3 ?? 1 ?? ???????? 100000 ǯ?ޤǤ?
    ???ϰϤ?ǯ???Υ??????????黻???ޤ???
?ץ????????? -lcalendar
    ?ȥ???????ɬ?פ??????ޤ???
?ؿ?
    easterg(),
    easterog()
    ??????
    easteroj()
    ?ϡ? Easter Sunday (?????פ???????) ?????դ?????
    dt
    ?ǻ??ꤷ????¤?Τ???¸????
    ???ι?¤?ΤΥݥ????֤??ޤ???
    ?ؿ? easterg()
    ?ϡ????쥴?ꥪ?? (1582
    ǯ?ʹߤ????衼???åѤΤۤȤ??ɤΥ??ꥹ?ȶ????Ǻ??Ѥ??줿)
    ?????ꤷ?? ?ؿ? easterog() ??????
    easteroj() ?ϡ??????? (1582
    ǯ?????????衼???åѶ??????Ӻ????ޤ?³??
    ???ꥷ???????????????????ʤɤ?????????????????)
    ?ε?§?˽??äơ? Easter Sunday
    ?????դ????黻???ޤ??? ???η??̡?
    easterog()
    ?ϥ??쥴?ꥪ??(??????????)???֤???
    easteroj()
    ?ϥ??ꥦ????(????????)???֤??ޤ???
?ؿ?
    gdate(),
    jdate(),
    ndaysg() ?????? ndaysj()
    ?ϡ????դ??? "ǯ?????"
    ?Ȥ???????ɽ???ȡ??????黻??Ŭ????
    "????" ɽ?????????Ѵ????Ԥ??ޤ??? B.C. 1
    ǯ 3 ?? 1 ???? 0 ?Ȥ??ơ?
    ?ʹߤηв????˽??֤??ֹ椬???????ޤ???
    ???ʤ??????????ֹ??ϡ? B.C. 1 ǯ 3 ?? 1
    ?????餽?????ޤǤηв????????ޤ???
    ?Ѵ??ϡ??????????ֹ????Ф??Ƥ?????ǽ???ޤ???
gdate()
    ??????
    jdate()
    ?ؿ??ϡ????ֹ? nd
    ???б????????դ??? dt
    ?ǻ??ꤷ????¤?Τ???¸???????ι?¤?ΤΥݥ????֤??ޤ???
ndaysg()
    ??????
    ndaysj()
    ?ؿ??ϡ? dt
    ?ǻ??ꤷ?????դ??????ֹ????֤??ޤ???
gdate()
    ?????? ndaysg() ?ؿ??ϡ?1582 ǯ 10
    ?? 4 ???ʹߤΥ??쥴?ꥪ???ӡ?
    ?????Υ??ꥦ?????????ꤷ?ޤ????? ??????
    jdate() ?????? ndaysj()
    ?ϰ??Ӥ??ƥ??ꥦ?????????????ꤷ?ޤ???
?????? 2
    ?Ĥ????ǤϤ??뤦ǯ?????????㤤?ޤ???
    ???ꥦ?????Ǥ? 4
    ???ܿ???ǯ?Ϥ??٤Ƥ??뤦ǯ?Ǥ?????
    ???쥴?ꥪ???ǤϤ??Τ????? 100
    ???ܿ??ǡ?400 ??
    ?ܿ??ǤϤʤ?ǯ???????ޤ???
    ???ʤ?????1700, 1800, 1900, 2100
    ǯ?Ϥ??뤦ǯ?ǤϤʤ??? 2000
    ǯ?Ϥ??뤦ǯ?ˤʤ??ޤ???
    ???ο????ʵ?§?ϡ?1582 ǯ 10 ?? 4 ???ˡ?
    Ʊ???ʹߤ? 10
    ???????????뤳?Ȥdz??Ϥ????ޤ?????
    ???ȥ??å????ȤΤۤȤ??ɤϡ?
    16
    ???????ޤǤˤ??ο????????Ѥ??ޤ???????
    ??????20
    ?????ޤǤʤ????ꥦ?????ˤȤɤޤ??⤢???ޤ?????
    ?ѹ??Ȥ??ο?̱?Ϥ????????ڤ??ؤ????Τϡ?1752
    ǯ 9 ?? 2 ???Ǥ???????
    ???λ????ǤϤ??Ǥ? 11
    ????????????ɬ?פ??????ޤ?????
?ؿ?
    week()
    ?ϡ? nd
    ?ǻ??ꤵ?줿???ֹ??????դ????ޤޤ??뽵?ֹ????֤??ޤ???
    ???? *year ?ϡ????ν?
    (??Ⱦʬ?ʾ?)
    ???ޤޤ???ǯ?????ꤵ???ޤ???
    ???ֹ??ϡ???ǯ?? 3
    ???ʾ夬?ޤޤ????? 1 ???? 1 ?Ȥ??ơ?
    ???֤˿??????ޤ???
    ???Ϸ??????????Ϥޤ??ޤ???
    ???δؿ??ϥ??쥴?ꥪ?????????????????ޤ???
?ؿ?
    weekday()
    ?ϡ? nd
    ?ǻ??ꤵ?줿???ֹ??????դ??????? (???? = 0 ??
    ???? = 6) ???֤??ޤ???
??¤?? date ??
    ⟨calendar.h⟩
    ?????????????Ƥ??ޤ??????Υե??????ɤ?
    ?ޤߤޤ???
int y;		/∗ year (0000 - ????) ∗/
int m;		/∗ month (1 - 12) ∗/
int d;		/∗ day of month (1 - 31) ∗/
 
0 ǯ?????˲Ȥμ??Ǥ? "1
    B.C."
    ?Ƚ??ޤ?????ŷʸ?ؼԤȤ??Υ饤?֥????Ǥ?
    "0" ??ɽ???????ޤ???
???ֹ??? ISO 8601: 1988
    ??Ŭ?礷?Ƥ??ޤ???
calendar ?饤?֥?????
    FreeBSD 3.0
    ?ǤϤ??????о줷?ޤ?????
???Υޥ˥奢???ڡ????ȥ饤?֥????ϡ?
    Wolfgang Helbig ⟨helbig@FreeBSD.org⟩
    ?ˤ??äƽ??ޤ?????
???Υ饤?֥????Ϥ??????ƿ??Ť˥????ǥ????줿?Τǡ?
    ?Ĥ??줿?Х??Ϥ????ޤ?????