xref: /PHP-5.6/ext/intl/dateformat/dateformat.h (revision 9762609c)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | http://www.php.net/license/3_01.txt                                  |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Kirti Velankar <kirtig@yahoo-inc.com>                       |
14    +----------------------------------------------------------------------+
15 */
16 #ifndef DATE_FORMATTER_H
17 #define DATE_FORMATTER_H
18 
19 #include <php.h>
20 
21 PHP_FUNCTION( datefmt_create );
22 PHP_FUNCTION( datefmt_get_error_code );
23 PHP_FUNCTION( datefmt_get_error_message );
24 PHP_METHOD( IntlDateFormatter, __construct );
25 void dateformat_register_constants( INIT_FUNC_ARGS );
26 
27 /*
28 These are not necessary at this point of time
29 #define DATEF_GREGORIAN 1
30 #define DATEF_CUSTOMARY 2
31 #define DATEF_BUDDHIST 3
32 #define DATEF_JAPANESE_IMPERIAL 4
33 */
34 
35 #define CALENDAR_SEC "tm_sec"
36 #define CALENDAR_MIN "tm_min"
37 #define CALENDAR_HOUR "tm_hour"
38 #define CALENDAR_MDAY "tm_mday"
39 #define CALENDAR_MON "tm_mon"
40 #define CALENDAR_YEAR "tm_year"
41 #define CALENDAR_WDAY "tm_wday"
42 #define CALENDAR_YDAY "tm_yday"
43 #define CALENDAR_ISDST "tm_isdst"
44 
45 #endif // DATE_FORMATTER_H
46