Changeset 22710 for trunk/psLib/src/astro/psTime.c
- Timestamp:
- Feb 27, 2009, 1:09:31 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psTime.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.c
r22705 r22710 61 61 static char *timeConfig = NULL; // Time config file path 62 62 static psMetadata *timeMetadata = NULL; // Time metadata read from config file 63 static int isoDecimals = 6; // Number of decimals to use in a string by psTimeToISO 63 64 64 65 … … 1353 1354 } 1354 1355 1356 1357 int psTimeSetISODecimals(int num) 1358 { 1359 int temp = isoDecimals; // Current value, to return 1360 isoDecimals = num; 1361 return temp; 1362 } 1363 1364 int psTimeGetISODecimals(void) 1365 { 1366 return isoDecimals; 1367 } 1368 1355 1369 psString psTimeToISO(const psTime *time) 1356 1370 { 1357 return timeToString(time, 9); // Use all 9 decimals allowed by the nanoseconds1371 return timeToString(time, isoDecimals); 1358 1372 } 1359 1373
Note:
See TracChangeset
for help on using the changeset viewer.
