Go to the documentation of this file.
42 day1900 =
jd - 2415020;
44 *yy = 4 * day1900 / 1461;
48 *
doy = day1900 - 1461 * (*yy - 1) / 4 - 365;
107 7 * (yy + (m + 9) / 12) / 4 +
132 struct tm mytm, *out_tm;
139 mytm.tm_year = yy - 1900;
148 out_tm = localtime(&
mytime);
150 *m = out_tm->tm_mon + 1;
151 *d = out_tm->tm_mday;
221 int daymon[2][12] = {
222 { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334},
223 { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335}
229 while (
doy <= daymon[ly][*m])
231 *d =
doy - daymon[ly][*m];
256 return ( (yy % 400 == 0) ||
257 ((yy % 4 == 0) && (yy % 100 != 0))) ? 1 : 0;
int ydoy_to_jd(int y, int doy)
int yydoy_to_md(int yy, int doy, int *m, int *d)
int yydoy_to_md70(int yy, int doy, int *m, int *d)
int yymd_to_jd(int yy, int m, int d)
int jd_to_yydoy(int jd, int *yy, int *doy)
int yydoy_to_jd(int yy, int doy)
int jd_to_ydoy(int jd, int *y, int *doy)