Index: trunk/psLib/src/astro/psTime.h
===================================================================
--- trunk/psLib/src/astro/psTime.h	(revision 22678)
+++ trunk/psLib/src/astro/psTime.h	(revision 22680)
@@ -241,5 +241,5 @@
 /** Convert psTime to ISO8601 formatted string.
  *
- *  Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss.
+ *  Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sssssssss.
  *  This function does not add or subtract leapseconds.
  *
@@ -249,4 +249,18 @@
     const psTime* time                  ///< Input time to be converted.
 );
+
+/** Convert psTime to ISO8601 formatted string with limited decimal places
+ *
+ *  Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.s, with as
+ *  many decimal places as specified.
+ *  This function does not add or subtract leapseconds.
+ *
+ *  @return psString:     Pointer null terminated array of chars in ISO time.
+ */
+psString psTimeToString(
+    const psTime *time,                 ///< Input time to be converted
+    int decimals                        ///< Number of decimals to use
+    );
+
 
 /** Convert psTime to struct tm time.
