Mercurial > libpst
annotate src/timeconv.h @ 278:06e723720db0
ignore internet headers that don't seem to be real rfc822 headers
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 22 May 2011 15:23:04 -0700 |
parents | e3a46f66332b |
children | ad7b880ad3d1 |
rev | line source |
---|---|
182
b65e8d0a088a
more cleanup on external names in the shared object file
Carl Byington <carl@five-ten-sg.com>
parents:
172
diff
changeset
|
1 #ifndef __PST_TIMECONV_H |
b65e8d0a088a
more cleanup on external names in the shared object file
Carl Byington <carl@five-ten-sg.com>
parents:
172
diff
changeset
|
2 #define __PST_TIMECONV_H |
16 | 3 |
132
5e4d6faada34
fix from Fridrich Strba for parallel make
Carl Byington <carl@five-ten-sg.com>
parents:
120
diff
changeset
|
4 #include "common.h" |
5e4d6faada34
fix from Fridrich Strba for parallel make
Carl Byington <carl@five-ten-sg.com>
parents:
120
diff
changeset
|
5 |
16 | 6 #ifdef __cplusplus |
7 extern "C" { | |
8 #endif | |
199
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
9 /** Convert a FILETIME to ascii printable local time. |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
10 @param[in] filetime time structure to be converted |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
11 @param[out] result pointer to output buffer, must be at least 30 bytes. |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
12 @return result pointer to the output buffer |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
13 */ |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
14 char* pst_fileTimeToAscii (const FILETIME* filetime, char* result); |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
15 |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
16 /** Convert a FILETIME to unix struct tm. |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
17 @param[in] filetime time structure to be converted |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
18 @param[out] result pointer to output struct tm |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
19 */ |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
20 void pst_fileTimeToStructTM (const FILETIME* filetime, struct tm *result); |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
21 |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
22 /** Convert a FILETIME to unix time_t value. |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
23 @param[in] filetime time structure to be converted |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
24 @return result time_t value |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
25 */ |
e3a46f66332b
more changes in recurrence decoding
Carl Byington <carl@five-ten-sg.com>
parents:
182
diff
changeset
|
26 time_t pst_fileTimeToUnixTime( const FILETIME* filetime); |
16 | 27 #ifdef __cplusplus |
28 } | |
29 #endif | |
30 | |
31 #endif |