Mercurial > libpst
annotate src/timeconv.h @ 142:2189a6b8134e
improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
if the conversion fails, leave the data in utf-8.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 23 Feb 2009 20:40:51 -0800 |
parents | 5e4d6faada34 |
children | 6954d315aaa8 |
rev | line source |
---|---|
16 | 1 #ifndef __TIMECONV_H |
2 #define __TIMECONV_H | |
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 | |
132
5e4d6faada34
fix from Fridrich Strba for parallel make
Carl Byington <carl@five-ten-sg.com>
parents:
120
diff
changeset
|
9 time_t fileTimeToUnixTime( const FILETIME *filetime, DWORD *remainder ); |
5e4d6faada34
fix from Fridrich Strba for parallel make
Carl Byington <carl@five-ten-sg.com>
parents:
120
diff
changeset
|
10 char * fileTimeToAscii (const FILETIME *filetime); |
5e4d6faada34
fix from Fridrich Strba for parallel make
Carl Byington <carl@five-ten-sg.com>
parents:
120
diff
changeset
|
11 struct tm * fileTimeToStructTM (const FILETIME *filetime); |
16 | 12 #ifdef __cplusplus |
13 } | |
14 #endif | |
15 | |
16 #endif |