libpst.so.4
timeconv.h
Go to the documentation of this file.
1 #ifndef __PST_TIMECONV_H
2 #define __PST_TIMECONV_H
3 
4 #include "common.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
14  char* pst_fileTimeToAscii (const FILETIME* filetime, char* result);
15 
20  void pst_fileTimeToStructTM (const FILETIME* filetime, struct tm *result);
21 
26  time_t pst_fileTimeToUnixTime( const FILETIME* filetime);
27 
34  size_t pst_fileTimeToString( const FILETIME* filetime, const char* date_format, char* result);
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif
size_t pst_fileTimeToString(const FILETIME *filetime, const char *date_format, char *result)
Convert a FILETIME to string in date_format format.
char * pst_fileTimeToAscii(const FILETIME *filetime, char *result)
Convert a FILETIME to ascii printable local time.
void pst_fileTimeToStructTM(const FILETIME *filetime, struct tm *result)
Convert a FILETIME to unix struct tm.
time_t pst_fileTimeToUnixTime(const FILETIME *filetime)
Convert a FILETIME to unix time_t value.