xref: /php-src/ext/intl/common/common_date.h (revision 01b3fc03)
1 /*
2    +----------------------------------------------------------------------+
3    | This source file is subject to version 3.01 of the PHP license,      |
4    | that is bundled with this package in the file LICENSE, and is        |
5    | available through the world-wide-web at the following url:           |
6    | https://www.php.net/license/3_01.txt                                 |
7    | If you did not receive a copy of the PHP license and are unable to   |
8    | obtain it through the world-wide-web, please send a note to          |
9    | license@php.net so we can mail you a copy immediately.               |
10    +----------------------------------------------------------------------+
11    | Authors: Gustavo Lopes <cataphract@php.net>                          |
12    +----------------------------------------------------------------------+
13 */
14 
15 #ifndef COMMON_DATE_H
16 #define	COMMON_DATE_H
17 
18 #include <unicode/umachine.h>
19 
20 U_CDECL_BEGIN
21 #include <php.h>
22 #include "../intl_error.h"
23 U_CDECL_END
24 
25 #ifdef __cplusplus
26 
27 #include <unicode/timezone.h>
28 
29 using icu::TimeZone;
30 
31 U_CFUNC TimeZone *timezone_convert_datetimezone(int type, void *object, int is_datetime, intl_error *outside_error, const char *func);
32 U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
33 		intl_error *err, const char *func);
34 
35 #endif
36 
37 U_CFUNC double intl_zval_to_millis(zval *z, intl_error *err, const char *func);
38 
39 #endif	/* COMMON_DATE_H */
40