Changeset 4409 for trunk/psLib/src/astro/psTime.h
- Timestamp:
- Jun 28, 2005, 10:17:52 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psTime.h (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.h
r4330 r4409 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-2 1 03:01:37$13 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-28 20:17:52 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 38 38 */ 39 39 typedef enum { 40 PS_TIME_TAI, ///< Temps Atomique International (TAI) time (time with leapseconds).41 PS_TIME_UTC, ///< Universal Time Coordinated (UTC) time (time without leapseconds).42 PS_TIME_UT1, ///< Universal Time corrected for polar motion43 PS_TIME_TT, ///< Terrestrial Time40 PS_TIME_TAI, ///< Temps Atomique International (TAI) time (time with leapseconds) 41 PS_TIME_UTC, ///< Universal Time Coordinated (UTC) time (time without leapseconds) 42 PS_TIME_UT1, ///< Universal Time corrected for polar motion 43 PS_TIME_TT, ///< Terrestrial Time 44 44 } psTimeType; 45 45 … … 49 49 */ 50 50 typedef enum { 51 PS_IERS_A, ///< IERS Bulletin A52 PS_IERS_B, ///< IERS Bulletin B51 PS_IERS_A, ///< IERS Bulletin A 52 PS_IERS_B, ///< IERS Bulletin B 53 53 } psTimeBulletin; 54 54 … … 62 62 typedef struct psTime 63 63 { 64 psS64 sec; ///< Seconds since epoch, Jan 1, 1970.65 psU32 nsec; ///< Nanoseconds since last second.66 psBool leapsecond; ///< if time falls on UTC leapsecond67 psTimeType type; ///< Type of time.64 psS64 sec; ///< Seconds since epoch, Jan 1, 1970. 65 psU32 nsec; ///< Nanoseconds since last second. 66 psBool leapsecond; ///< if time falls on UTC leapsecond 67 psTimeType type; ///< Type of time. 68 68 } 69 69 psTime; … … 97 97 */ 98 98 psTime* psTimeAlloc( 99 psTimeType type ///< Type of time to create (UTC or TAI).99 psTimeType type ///< Type of time to create (UTC or TAI). 100 100 ); 101 101 … … 108 108 */ 109 109 psTime* psTimeGetNow( 110 psTimeType type ///< Type of time to get (UTC or TAI).110 psTimeType type ///< Type of time to get (UTC or TAI). 111 111 ); 112 112 … … 118 118 */ 119 119 psTime* psTimeConvert( 120 psTime *time, ///< Time to be converted.121 psTimeType type ///< Type to be converted to.120 psTime *time, ///< Time to be converted. 121 psTimeType type ///< Type to be converted to. 122 122 ); 123 123 … … 131 131 double psTimeToLMST( 132 132 psTime *time, ///< psTime to be converted. 133 double longitude ///< Longitude.133 double longitude ///< Longitude. 134 134 ); 135 135 … … 141 141 */ 142 142 double psTimeGetUT1Delta( 143 const psTime *time, ///< psTime to be looked up.144 psTimeBulletin bulletin ///< IERS bulletin to use143 const psTime *time, ///< psTime to be looked up. 144 psTimeBulletin bulletin ///< IERS bulletin to use 145 145 ); 146 146 … … 152 152 */ 153 153 psF64 p_psTimeGetTAIDelta( 154 const psTime *time ///< psTime to be looked up.154 const psTime *time ///< psTime to be looked up. 155 155 ); 156 156 … … 212 212 * This function does not add or subtract leapseconds. 213 213 * 214 * @return char*:Pointer null terminated array of chars in ISO time.215 */ 216 char*psTimeToISO(214 * @return psString: Pointer null terminated array of chars in ISO time. 215 */ 216 psString psTimeToISO( 217 217 const psTime* time ///< Input time to be converted. 218 218 ); … … 268 268 */ 269 269 psTime* psTimeFromISO( 270 const char* time///< Input time to be converted.270 const char* input ///< Input time to be converted. 271 271 ); 272 272 … … 278 278 */ 279 279 psTime* psTimeFromTimeval( 280 const struct timeval * time///< Input time to be converted.280 const struct timeval *input ///< Input time to be converted. 281 281 ); 282 282 … … 296 296 * Converts UTC time to psTime. It will verify if time specified is a leapsecond. 297 297 * 298 * @return psTime*: time (UTC) 298 * @return psTime*: time (UTC)time 299 299 */ 300 300 psTime* psTimeFromUTC(
Note:
See TracChangeset
for help on using the changeset viewer.
