Changeset 6184 for trunk/psLib/src/astro/psTime.c
- Timestamp:
- Jan 23, 2006, 10:04:31 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psTime.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.c
r6036 r6184 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-01- 18 20:59:31 $12 * @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-01-23 20:04:31 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 920 920 PS_ASSERT_PTR_NON_NULL(time, NULL); 921 921 psTime *out = NULL; 922 //Also see psEOC_PolarTideCorr for more info. 922 923 923 924 // Convert psTime to MJD … … 982 983 out = psTimeAlloc(time->type); 983 984 *out = *time; 984 // out->sec = time->sec;985 // out->nsec = time->nsec;986 // out->leapsecond = time->leapsecond;987 985 if (out->type != PS_TIME_UT1) { 988 986 out = psTimeConvert(out, PS_TIME_UT1); 989 987 } 988 //see if corrections include seconds or just nano-seconds 989 //nano-seconds must be converted (scaled) to integer values & total cannot be negative 990 990 if (fabs(CORZ) > 1.0) { 991 991 int sec = (int)CORZ; … … 1806 1806 } 1807 1807 1808 psTime *p_psTimeCopy(const psTime *inTime) 1809 { 1810 PS_ASSERT_PTR_NON_NULL(inTime, NULL); 1811 psTime *outTime = psTimeAlloc(inTime->type); 1812 *outTime = *inTime; 1813 return outTime; 1814 } 1815
Note:
See TracChangeset
for help on using the changeset viewer.
