62 L = L - ((146097 * M + 3) / 4);
63 N = (4000 * (L + 1)) / 1461001;
64 L = L - ((1461 * N) / 4) + 31;
66 iday = int(L - (2447 *
P) / 80);
68 imonth = int(
P + 2 - 12 * L);
69 iyear = int(100 * (M - 49) + N + L);
76 M = (L - 1) / 365 - L / 1461;
79 iday = int(N - (2447 *
P) / 80);
81 imonth = int(
P + 2 - 12 * N);
82 iyear = int(4 * Q + M + N - 4716);
111 double y =
static_cast<double>( yy );
112 double m =
static_cast<double>( mm );
119 if(yy < 1582 || (yy == 1582 && (mm < 10 || (mm == 10 && dd < 15))))
121 jd = 1729777 + dd + 367 * yy
122 -
static_cast<long>(7 * (
y + 5001 +
123 static_cast<long>((m - 9) / 7)) / 4)
124 +
static_cast<long>(275 * m / 9);
128 jd = 1721029 + dd + 367 * yy
129 -
static_cast<long>(7 * (
y +
static_cast<long>((m + 9) / 12)) / 4)
130 -
static_cast<long>(3 * (
static_cast<long>((
y + (m - 9) / 7) / 100)
132 +
static_cast<long>(275 * m / 9);
139 (!((yy - 1) % 100) &&
167 long seconds =
static_cast<long>(
temp);
169 hh = seconds / 3600 ;
170 mm = (seconds % 3600) / 60 ;
171 sec = double(seconds % 60) +
sod ;
179 return (sec + 60. * (mm + 60. * hh));