Mercurial > libpst
comparison src/timeconv.h @ 199:e3a46f66332b
more changes in recurrence decoding
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 13 May 2009 11:59:55 -0700 |
parents | b65e8d0a088a |
children | ad7b880ad3d1 |
comparison
equal
deleted
inserted
replaced
198:7c60d6d1c681 | 199:e3a46f66332b |
---|---|
4 #include "common.h" | 4 #include "common.h" |
5 | 5 |
6 #ifdef __cplusplus | 6 #ifdef __cplusplus |
7 extern "C" { | 7 extern "C" { |
8 #endif | 8 #endif |
9 char * pst_fileTimeToAscii (const FILETIME *filetime); | 9 /** Convert a FILETIME to ascii printable local time. |
10 struct tm * pst_fileTimeToStructTM (const FILETIME *filetime); | 10 @param[in] filetime time structure to be converted |
11 time_t pst_fileTimeToUnixTime( const FILETIME *filetime); | 11 @param[out] result pointer to output buffer, must be at least 30 bytes. |
12 @return result pointer to the output buffer | |
13 */ | |
14 char* pst_fileTimeToAscii (const FILETIME* filetime, char* result); | |
15 | |
16 /** Convert a FILETIME to unix struct tm. | |
17 @param[in] filetime time structure to be converted | |
18 @param[out] result pointer to output struct tm | |
19 */ | |
20 void pst_fileTimeToStructTM (const FILETIME* filetime, struct tm *result); | |
21 | |
22 /** Convert a FILETIME to unix time_t value. | |
23 @param[in] filetime time structure to be converted | |
24 @return result time_t value | |
25 */ | |
26 time_t pst_fileTimeToUnixTime( const FILETIME* filetime); | |
12 #ifdef __cplusplus | 27 #ifdef __cplusplus |
13 } | 28 } |
14 #endif | 29 #endif |
15 | 30 |
16 #endif | 31 #endif |