comparison 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
comparison
equal deleted inserted replaced
377:506e266f930d 378:ad7b880ad3d1
22 /** Convert a FILETIME to unix time_t value. 22 /** Convert a FILETIME to unix time_t value.
23 @param[in] filetime time structure to be converted 23 @param[in] filetime time structure to be converted
24 @return result time_t value 24 @return result time_t value
25 */ 25 */
26 time_t pst_fileTimeToUnixTime( const FILETIME* filetime); 26 time_t pst_fileTimeToUnixTime( const FILETIME* filetime);
27
28 /** Convert a FILETIME to string in date_format format.
29 @param[in] filetime time structure to be converted
30 @param[in] string ctime_r format of output date
31 @param[out] result pointer to output buffer, must be at least 30 bytes.
32 @return result size_t value returned by strftime
33 */
34 size_t pst_fileTimeToString( const FILETIME* filetime, const char* date_format, char* result);
27 #ifdef __cplusplus 35 #ifdef __cplusplus
28 } 36 }
29 #endif 37 #endif
30 38
31 #endif 39 #endif