annotate src/timeconv.h @ 395:fbe51207b963

changes to build on centos 6
author Carl Byington <carl@five-ten-sg.com>
date Sun, 12 Jan 2020 14:10:17 -0800
parents 1e1970f93f94
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
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
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
6 #ifdef __cplusplus
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
7 extern "C" {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
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);
378
ad7b880ad3d1 Alfredo Esteban - add -l and -f options to lspst
Carl Byington <carl@five-ten-sg.com>
parents: 199
diff changeset
27
ad7b880ad3d1 Alfredo Esteban - add -l and -f options to lspst
Carl Byington <carl@five-ten-sg.com>
parents: 199
diff changeset
28 /** Convert a FILETIME to string in date_format format.
380
1e1970f93f94 allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents: 378
diff changeset
29 @param[in] filetime time structure to be converted
1e1970f93f94 allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents: 378
diff changeset
30 @param[in] date_format string ctime_r format of output date
1e1970f93f94 allow all 7 days in bydays recurring appointment, update for fedora python packaging
Carl Byington <carl@five-ten-sg.com>
parents: 378
diff changeset
31 @param[out] result pointer to output buffer, must be at least 30 bytes.
378
ad7b880ad3d1 Alfredo Esteban - add -l and -f options to lspst
Carl Byington <carl@five-ten-sg.com>
parents: 199
diff changeset
32 @return result size_t value returned by strftime
ad7b880ad3d1 Alfredo Esteban - add -l and -f options to lspst
Carl Byington <carl@five-ten-sg.com>
parents: 199
diff changeset
33 */
ad7b880ad3d1 Alfredo Esteban - add -l and -f options to lspst
Carl Byington <carl@five-ten-sg.com>
parents: 199
diff changeset
34 size_t pst_fileTimeToString( const FILETIME* filetime, const char* date_format, char* result);
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
35 #ifdef __cplusplus
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
36 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
37 #endif
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
38
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
39 #endif