caldate(3) caldate(3) NNAAMMEE caldate - calendar dates SSYYNNTTAAXX ##iinncclluuddee <> unsigned int ccaallddaattee__ffmmtt(_s,&_c_d); unsigned int ccaallddaattee__ssccaann(_s,&_c_d); struct caldate _c_d; char *_s; DDEESSCCRRIIPPTTIIOONN A ssttrruucctt ccaallddaattee value is a calendar date. It has three components: yyeeaarr, mmoonntthh (1...12), and ddaayy (1...31). ccaallddaattee__ffmmtt prints _c_d in ISO style (yyyy-mm-dd) into the character buffer _s, without a terminating NUL. It returns the number of charac- ters printed. _s may be zero; then ccaallddaattee__ffmmtt returns the number of characters that would have been printed. ccaallddaattee__ssccaann reads a calendar date in ISO style from the beginning of the character buffer _s and puts it into _c_d. It returns the number of characters read. If _s does not start with an ISO-style date, ccaall-- ddaattee__ssccaann returns 0. SSEEEE AALLSSOO caldate_mjd(3), caltime(3) caldate(3)