40 _day0hTU(rhs._day0hTU),
42 _decimal(rhs._decimal)
107 const double TWOPI = 6.28318530717958647693 ;
108 const double OMEGATERRE = 6.28318530717958647693 / 86164.09054 ;
113 double tsm0hTU = 0.0;
129 tsm0hTU = 23925.836 + t * (8640184.542 + t * 0.0929) ;
135 tsm0hTU = 1.72944494 + t * 6.3003880987 ;
140 tsm0hTU = 24110.54841 + t * (8640184.812866
141 + t * (0.093103 - t * 6.210e-6)) ;
145 tsm = fmod (t,
TWOPI) ;
159 const double epsilon = 1.0e-12 ;
162 double u, v, w, ru, rv, rw ;
166 if (fabs (w -
fnint (w)) < epsilon)
174 rw = w - (double)iw ;
175 if ((iw < 0) && (rw != 0.0))
183 if (fabs(v -
fnint (v)) < epsilon)
185 iv = (int)
inint (v) ;
191 rv = v - (double)iv ;
192 if ((iv < 0) && (rv != 0.0))
201 ru = u - (double)iu ;
202 if ((iu < 0) && (ru != 0.0))
226 this->AsJulianDate(&date);
233 this->AsGMSTDateTime(&date);
This class represents a date.
void set_month(int month)
int AsJulianDate(JulianDate *julian)
This function converts the current JSDDateTime into Julian Date.
This class represents a date and time in the civil format.
double get_julianDate() const
unsigned long get_second()
static const double JOURCIVIL_LENGTH
This class represents an MJD date (Modified Julian date)
void set_second(int second)
~JSDDateTime()
Destructor.
JulianDate _day0hTU
Julian day at 0h00 UT.
int AsJSDDateTime(JSDDateTime *JSDdate)
This function converts the current CivilDateTime into JSDDateTime.
int AsGMSTDateTime(GMSTDateTime *GMST)
This function converts the current JSDDateTime into GMST Date.
void set_second(double second)
This class represents a date in the julian referential.
void set_decimal(double decimal)
JulianDate get_day0hTU() const
void set_decimal(double decimal)
double get_second() const
unsigned long get_microsecond()
void set_julianDate(double julianDate)
int AsJSDDateTime(JSDDateTime *JSDdate)
This function converts the current JulianDate in JSDDateTime.
double get_decimal() const
Ori_TSM_Green get_origine()
This class represents a date.
JSDDateTime & operator=(const JSDDateTime &rhs)
Affectation operator.