• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/lib/libcalendar/

Lines Matching refs:date

40  * month. This assumes the internal date representation, where a year
52 typedef struct date date;
56 static date jiswitch = {1582, 7, 3};
58 static date *date2idt(date *idt, date *dt);
59 static date *idt2date(date *dt, date *idt);
60 static int ndaysji(date *idt);
61 static int ndaysgi(date *idt);
65 * Compute the Julian date from the number of days elapsed since
68 date *
69 jdate(int ndays, date *dt)
71 date idt; /* Internal date representation */
97 /* return external representation of the date */
103 * The date is given according to Julian calendar.
106 ndaysj(date *dt)
108 date idt; /* Internal date representation */
117 * Same as above, where the Julian date is given in internal notation.
121 ndaysji(date * idt)
128 * Compute the date according to the Gregorian calendar from the number of
129 * days since March 1st, year zero. The date computed will be Julian if it
132 date *
133 gdate(int ndays, date *dt)
136 date idt; /* for internal date representation */
175 /* return external representation of found date */
180 * Return the number of days since March 1st of the year zero. The date is
185 ndaysg(date *dt)
187 date idt; /* Internal date representation */
195 * Same as above, but with the Gregorian date given in internal
199 ndaysgi(date *idt)
240 date dt;
253 date idt;
277 date dmondaygi = {1997, 8, 16}; /* Internal repr. of 1997-11-17 */
293 * Convert a date to internal date representation: The year starts on
297 static date *
298 date2idt(date *idt, date *dt)
316 static date *
317 idt2date(date *dt, date *idt)