comparison src/timeconv.c @ 63:cfd6175f9334

Start work on pst2dii to convert to Summation dii load file format.
author Carl Byington <carl@five-ten-sg.com>
date Sat, 23 Feb 2008 14:36:17 -0800
parents 7d5c637aaafb
children 987aa872294e
comparison
equal deleted inserted replaced
62:ee4e0d00bc94 63:cfd6175f9334
16 #include "timeconv.h" 16 #include "timeconv.h"
17 17
18 char * fileTimeToAscii (const FILETIME *filetime) { 18 char * fileTimeToAscii (const FILETIME *filetime) {
19 time_t t1; 19 time_t t1;
20 20
21 t1 = fileTimeToUnixTime(filetime,0); 21 t1 = fileTimeToUnixTime(filetime, NULL);
22 return ctime(&t1); 22 return ctime(&t1);
23 } 23 }
24 24
25 struct tm * fileTimeToStructTM (const FILETIME *filetime) { 25 struct tm * fileTimeToStructTM (const FILETIME *filetime) {
26 time_t t1; 26 time_t t1;
27 t1 = fileTimeToUnixTime(filetime, 0); 27 t1 = fileTimeToUnixTime(filetime, NULL);
28 return gmtime(&t1); 28 return gmtime(&t1);
29 } 29 }
30 30
31 /*********************************************************************** 31 /***********************************************************************
32 * DOSFS_FileTimeToUnixTime 32 * DOSFS_FileTimeToUnixTime