Mercurial > libpst
diff src/timeconv.c @ 378:ad7b880ad3d1
Alfredo Esteban - add -l and -f options to lspst
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 07 Dec 2017 08:43:57 -0800 |
parents | e3a46f66332b |
children |
line wrap: on
line diff
--- a/src/timeconv.c Mon Nov 20 08:19:28 2017 -0800 +++ b/src/timeconv.c Thu Dec 07 08:43:57 2017 -0800 @@ -8,6 +8,11 @@ return ctime_r(&t, result); } +size_t pst_fileTimeToString(const FILETIME* filetime, const char* date_format, char* result) { + time_t t; + t = pst_fileTimeToUnixTime(filetime); + return strftime(result, MAXDATEFMTLEN-1, date_format, localtime(&t)); +} void pst_fileTimeToStructTM (const FILETIME *filetime, struct tm *result) { time_t t1;