#98 closed defect (fixed)
Questions for psGetMJD() Function
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | IPP SDRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Section 5.1 for the SDRS has the psGetMJD() function return the Modified Julian
Days (MJD) value into a psTime struct. How should modified Julian days be
packed into the psTime struct? Or should psGetMJD() simply return a long with
units of days?
TAI calculates MJD as a whole number, and not in terms of fractional days. Are
fractional days expected?
Change History (3)
comment:1 by , 22 years ago
comment:2 by , 22 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
we have made some changes to the APIs to clear this up. we have dropped
psGetSidereal and psGetMJD and instead created:
psTime psTimeGetTime (void);
which returns the current time in the correct psTime units.
double psMJDToSidereal (double MJD, double longitude);
double psSiderealToMJD (double sidereal, double longitude);
which convert betwee MJD and Sidereal given the longitude.
comment:3 by , 22 years ago
psTime functions have changed significantly in the new SDRS. Hence this bug is
probably no longer relevant.

Maybe this function should be replaced with a new function named psGetTime
(psTime time) and allow the already listed psTimeToMJD() function to convert to
MJD time?