Changeset 1248 for trunk/psLib/src/astronomy/psTime.c
- Timestamp:
- Jul 20, 2004, 3:56:28 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psTime.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psTime.c
r1247 r1248 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-07-21 01: 29:33$14 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-07-21 01:56:28 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 #include "psTime.h" 30 30 #include "psError.h" 31 #define PS_ALLOW_MALLOC32 31 #include "psMemory.h" 33 32 … … 173 172 // Converts psTime to YYYY/MM/DD,HH:MM:SS.SSS in string form 174 173 ms = time.tv_usec/1000; 174 175 // tmTime variable is statically allocated, no need to free 175 176 tmTime = gmtime(&time.tv_sec); 176 177 if(!strftime(tempString, MAX_TIME_STRING_LENGTH, "%Y/%m/%d,%H:%M:%S", tmTime)) { … … 182 183 } 183 184 psFree(tempString); 184 free(tmTime);185 185 186 186 return timeString;
Note:
See TracChangeset
for help on using the changeset viewer.
