IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 27, 2009, 1:09:31 PM (17 years ago)
Author:
Paul Price
Message:

Make the number of decimals used by psTimeToISO configurable. MySQL can't handle more than 6 decimals (and it strips those off anyway). By doing this, we can keep MySQL happy, and still preserve the option of printing everything.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.h

    r22682 r22710  
    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.sssssssss.
     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);
    251265
    252266/** Convert psTime to ISO8601 formatted string with limited decimal places
Note: See TracChangeset for help on using the changeset viewer.