- Timestamp:
- Mar 5, 2009, 11:13:29 AM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/astro/psTime.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
-
branches/cnb_branches/cnb_branch_20090215/psLib/src/astro/psTime.h
r17023 r23197 135 135 /** Convert psTime to UTC, TAI, UT1, or TT time. 136 136 * 137 * Converts psTime to UTC, TAI, UT1, or TT time based on the psTimeType argument.138 * 139 * @return psTime*: Pointer to psTime.140 */ 141 psTime*psTimeConvert(137 * Converts psTime in-place to UTC, TAI, UT1, or TT time based on the psTimeType argument. 138 * 139 * @return bool: Successful conversion? 140 */ 141 bool psTimeConvert( 142 142 psTime *time, ///< Time to be converted. 143 143 psTimeType type ///< Type to be converted to. … … 241 241 /** Convert psTime to ISO8601 formatted string. 242 242 * 243 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss .243 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.ssssss 244 244 * This function does not add or subtract leapseconds. 245 245 * … … 249 249 const psTime* time ///< Input time to be converted. 250 250 ); 251 252 /** Set number of decimals printed by psTimeToISO 253 * 254 * @return int: Previous setting 255 */ 256 int psTimeSetISODecimals( 257 int num ///< Number of decimals to print 258 ); 259 260 /** Get number of decimals printed by psTimeToISO 261 * 262 * @return int: Current setting 263 */ 264 int psTimeGetISODecimals(void); 265 266 /** Convert psTime to ISO8601 formatted string with limited decimal places 267 * 268 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.s, with as 269 * many decimal places as specified. 270 * This function does not add or subtract leapseconds. 271 * 272 * @return psString: Pointer null terminated array of chars in ISO time. 273 */ 274 psString psTimeToString( 275 const psTime *time, ///< Input time to be converted 276 int decimals ///< Number of decimals to use 277 ); 278 251 279 252 280 /** Convert psTime to struct tm time. … … 474 502 ); 475 503 476 // used by p_psEOCInit() 477 const char *p_psTimeConfigFilename(const char *filename); 504 /// Return the name of the configuration file used for time 505 /// 506 /// The name is derived first from the environment variable PS_CONFIG_FILE if set; next from a previously used 507 /// configuration file if available; finally from the default which is set at install time. 508 const char *p_psTimeConfigFilename(const char *filename // Filename to use, or NULL 509 ); 478 510 479 511 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
