IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2009, 9:44:56 AM (17 years ago)
Author:
Paul Price
Message:

psTimeToISO now produces 9 decimal places. A new function, psTimeToString, allows an arbitrary number of decimal places.

File:
1 edited

Legend:

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

    r22678 r22680  
    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.sssssssss.
    244244 *  This function does not add or subtract leapseconds.
    245245 *
     
    249249    const psTime* time                  ///< Input time to be converted.
    250250);
     251
     252/** Convert psTime to ISO8601 formatted string with limited decimal places
     253 *
     254 *  Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.s, with as
     255 *  many decimal places as specified.
     256 *  This function does not add or subtract leapseconds.
     257 *
     258 *  @return psString:     Pointer null terminated array of chars in ISO time.
     259 */
     260psString psTimeToString(
     261    const psTime *time,                 ///< Input time to be converted
     262    int decimals                        ///< Number of decimals to use
     263    );
     264
    251265
    252266/** Convert psTime to struct tm time.
Note: See TracChangeset for help on using the changeset viewer.