Go to the documentation of this file.
22 long *
year, *month, *
day, *hour, *minute, *second, *
msec;
24 long jd,
i,
j,
k, l, n;
25 double msecAD, secondAD, minuteAD, hourAD, dayAD;
28 secondAD = msecAD / 1000.0;
29 minuteAD = secondAD / 60.0;
30 hourAD = minuteAD / 60.0;
31 dayAD = hourAD / 24.0;
36 l = l - (146097 * n + 3) / 4;
37 i = 4000 * (l + 1) / 1461001;
38 l = l - 1461 *
i / 4 + 31;
40 k = l - 2447 *
j / 80;
43 i = 100 * (n - 49) +
i + l;
49 *hour = fmod(hourAD, 24.0);
50 *minute = fmod(minuteAD, 60.0);
51 *second = fmod(secondAD, 60.0);
52 *
msec = fmod(msecAD, 1000.0);
void EPOCHbreakdown(double epoch, long *year, long *month, long *day, long *hour, long *minute, long *second, long *msec)