39 static const double JDAY_JAN1_00H_1900 = 2415019.5;
40 static const double JDAY_JAN1_12H_1900 = 2415020.0;
41 static const double JDAY_JAN1_12H_2000 = 2451545.0;
42 static const double JDAY_JAN1_00H_1970 = 2440587.5;
44 static const double OMEGA_E = 1.002737909350795;
46 static const int KSEC_PER_MIN = 60;
47 static const int KSEC_PER_HR = 3600;
48 static const int KSEC_PER_DAY = 86400;
49 static const int KMIN_PER_HR = 60;
50 static const int KMIN_PER_DAY = 1440;
51 static const int KHR_PER_DAY = 60;
58 gTimeSpan(
long lDays,
int nHours,
int nMins,
double nSecs);
64 const gTimeSpan& operator=(
const double& timeSpanSrc)
66 m_timeSpan=timeSpanSrc*KSEC_PER_DAY;
120 bool operator==(
gTimeSpan timeSpan)
const;
121 bool operator!=(
gTimeSpan timeSpan)
const;
122 bool operator<(
gTimeSpan timeSpan)
const;
123 bool operator>(
gTimeSpan timeSpan)
const;
124 bool operator<=(
gTimeSpan timeSpan)
const;
125 bool operator>=(
gTimeSpan timeSpan)
const;
147 gTime(
double ai_jDays = 0);
148 gTime(
int year,
double day);
149 gTime(
int nYear,
int nMonth,
int nDay,
int nHour,
int nMin,
double nSec);
150 gTime(
struct tm ai_timestruct);
169 void setTime(
int year,
double day);
225 return (ai_year % 4 == 0 && ai_year % 100 != 0) || (ai_year % 400 == 0);
259 void toCalendarDate(
int *pYear,
int *pMonth ,
double *pDom)
const;
261 double toJCenturies()
const;
297 bool operator== (
gTime time)
const;
298 bool operator!= (
gTime time)
const;
299 bool operator< (
gTime time)
const;
300 bool operator> (
gTime time)
const;
301 bool operator<= (
gTime time)
const;
302 bool operator>= (
gTime time)
const;
316 ai_gTime.toCalendarDate(&year, &month , &Dom);
318 s <<
"GMT " << year <<
" " << month <<
":"<<Dom;
329 #endif // _GTIME_HPP_