#include <tm.h>
Definition at line 69 of file tm.h.
void TJulianDate::GetCalendarDate |
( |
int |
jdn, |
|
|
int & |
dd, |
|
|
int & |
mm, |
|
|
int & |
yy |
|
) |
| |
|
static |
Definition at line 327 of file tm.cpp.
331 long daysPer400Years = 146097L;
332 long fudgedDaysPer4000Years = 1460970L + 31;
340 daysPer400Years = 146100L;
341 fudgedDaysPer4000Years = 1461000L + 1;
343 z = 4 * x / daysPer400Years;
344 x = x - (daysPer400Years * z + 3) / 4;
345 y = 4000 * (x + 1) / fudgedDaysPer4000Years;
346 x = x - 1461 * y / 4 + 31;
348 d = x - 2447 * m / 80;
351 y = 100 * (z - 49) + y + x;
static int LastJulianDateN
int TJulianDate::GetJulianDateN |
( |
int |
d, |
|
|
int |
m, |
|
|
int |
y |
|
) |
| |
|
static |
Definition at line 303 of file tm.cpp.
315 jdn = 367L * y - 7 * (y + 5001L + (m - 9) / 7) / 4
316 + 275 * m / 9 + d + 1729777L;
318 jdn = (long)(d - 32076)
319 + 1461L * (y + 4800L + (m - 14) / 12) / 4
320 + 367 * (m - 2 - (m - 14) / 12 * 12) / 12
321 - 3 * ((y + 4900L + (m - 14) / 12) / 100) / 4
static int LastJulianDate
int TJulianDate::LastJulianDate =15821004 |
|
static |
Definition at line 71 of file tm.h.
int TJulianDate::LastJulianDateN =2299160 |
|
static |
Definition at line 72 of file tm.h.
The documentation for this class was generated from the following files: