Mercurial > libpst
annotate src/timeconv.h @ 388:292ad0f71fd4
Add operator and quotes to the AX_PYTHON_DEVEL parameter
The operator is required and the quotes are needed to protect PYTHON_VERSION.
See-also: https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
Fixes:
checking whether to build the libpst python interface... yes
checking for python build information...
checking for python3.7... python3.7
checking for main in -lpython3.7... no
checking for main in -lpython3.7m... yes
results of the Python check:
Binary: python3.7
Library: python3.7m
Include Dir: /usr/include/python3.7m
checking for python3.7... /usr/bin/python3.7
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python 3.7... File "<string>", line 1
import sys; ver = sys.version.split ()[0]; print (ver 3.7)
^
SyntaxError: invalid syntax
no
configure: error: this package requires Python 3.7.
If you have it installed, but it isn't the default Python
interpreter in your system path, please pass the PYTHON_VERSION
variable to configure. See ``configure --help'' for reference.
author | Paul Wise <pabs3@bonedaddy.net> |
---|---|
date | Sat, 21 Dec 2019 21:25:45 +0800 |
parents | 1e1970f93f94 |
children |
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); |
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 | 35 #ifdef __cplusplus |
36 } | |
37 #endif | |
38 | |
39 #endif |