IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/psLib/src/astro/psTime.h

    r17023 r23197  
    135135/** Convert psTime to UTC, TAI, UT1, or TT time.
    136136 *
    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 */
     141bool psTimeConvert(
    142142    psTime *time,                      ///< Time to be converted.
    143143    psTimeType type                    ///< Type to be converted to.
     
    241241/** Convert psTime to ISO8601 formatted string.
    242242 *
    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
    244244 *  This function does not add or subtract leapseconds.
    245245 *
     
    249249    const psTime* time                  ///< Input time to be converted.
    250250);
     251
     252/** Set number of decimals printed by psTimeToISO
     253 *
     254 * @return int: Previous setting
     255 */
     256int 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 */
     264int 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 */
     274psString psTimeToString(
     275    const psTime *time,                 ///< Input time to be converted
     276    int decimals                        ///< Number of decimals to use
     277    );
     278
    251279
    252280/** Convert psTime to struct tm time.
     
    474502);
    475503
    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.
     508const char *p_psTimeConfigFilename(const char *filename // Filename to use, or NULL
     509    );
    478510
    479511/// @}
Note: See TracChangeset for help on using the changeset viewer.