gTime.cpp | gTime.cpp | |||
---|---|---|---|---|

skipping to change at line 220 | skipping to change at line 220 | |||

DOM = B - D - (int)(E * 30.6001) + F; | DOM = B - D - (int)(E * 30.6001) + F; | |||

month = (E < 13.5) ? (E - 1) : (E - 13); | month = (E < 13.5) ? (E - 1) : (E - 13); | |||

year = (month > 2.5) ? (C - 4716) : (C - 4715); | year = (month > 2.5) ? (C - 4716) : (C - 4715); | |||

*pYear = year; | *pYear = year; | |||

*pMonth = month; | *pMonth = month; | |||

*pDom = DOM; | *pDom = DOM; | |||

} | } | |||

double gTime::toJCenturies() const | ||||

{ | ||||

double jd; | ||||

double UT = fmod((m_time + 0.5), 1.0); | ||||

jd = m_time - UT; | ||||

double TU = (jd- JDAY_JAN1_12H_2000) / 36525.0; | ||||

return TU; | ||||

} | ||||

// @method toThetaGMST(); | // @method toThetaGMST(); | |||

// Definition: Calculate Theta Angle at Greenwich Mean Time for the Julian date. The return value | // Definition: Calculate Theta Angle at Greenwich Mean Time for the Julian date. The return value | |||

// is the angle, in radians, measuring eastward from the Vernal Equinox to the | // is the angle, in radians, measuring eastward from the Vernal Equinox to the | |||

// prime meridian. | // prime meridian. | |||

double gTime::toThetaGMST() const | double gTime::toThetaGMST() const | |||

{ | { | |||

double jd, Theta_JD; | double jd, Theta_JD; | |||

double UT = fmod((m_time + 0.5), 1.0); | double UT = fmod((m_time + 0.5), 1.0); | |||

jd = m_time - UT; | jd = m_time - UT; | |||

End of changes. 1 change blocks. | ||||

0 lines changed or deleted | | 11 lines changed or added | ||

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |