Index: trunk/psLib/src/astro/psTime.c
===================================================================
--- trunk/psLib/src/astro/psTime.c	(revision 22705)
+++ trunk/psLib/src/astro/psTime.c	(revision 22710)
@@ -61,4 +61,5 @@
 static char *timeConfig = NULL;         // Time config file path
 static psMetadata *timeMetadata = NULL; // Time metadata read from config file
+static int isoDecimals = 6;             // Number of decimals to use in a string by psTimeToISO
 
 
@@ -1353,7 +1354,20 @@
 }
 
+
+int psTimeSetISODecimals(int num)
+{
+    int temp = isoDecimals;          // Current value, to return
+    isoDecimals = num;
+    return temp;
+}
+
+int psTimeGetISODecimals(void)
+{
+    return isoDecimals;
+}
+
 psString psTimeToISO(const psTime *time)
 {
-    return timeToString(time, 9);       // Use all 9 decimals allowed by the nanoseconds
+    return timeToString(time, isoDecimals);
 }
 
