Mercurial > libpst
diff src/timeconv.h @ 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 | 1e1970f93f94 |
line wrap: on
line diff
--- a/src/timeconv.h Mon Nov 20 08:19:28 2017 -0800 +++ b/src/timeconv.h Thu Dec 07 08:43:57 2017 -0800 @@ -24,6 +24,14 @@ @return result time_t value */ time_t pst_fileTimeToUnixTime( const FILETIME* filetime); + + /** Convert a FILETIME to string in date_format format. + @param[in] filetime time structure to be converted + @param[in] string ctime_r format of output date + @param[out] result pointer to output buffer, must be at least 30 bytes. + @return result size_t value returned by strftime + */ + size_t pst_fileTimeToString( const FILETIME* filetime, const char* date_format, char* result); #ifdef __cplusplus } #endif