dateformat.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #include <php.h>
  19. PHP_FUNCTION( datefmt_create );
  20. PHP_FUNCTION( datefmt_get_error_code );
  21. PHP_FUNCTION( datefmt_get_error_message );
  22. PHP_METHOD( IntlDateFormatter, __construct );
  23. void dateformat_register_constants( INIT_FUNC_ARGS );
  24. /*
  25. These are not necessary at this point of time
  26. #define DATEF_GREGORIAN 1
  27. #define DATEF_CUSTOMARY 2
  28. #define DATEF_BUDDHIST 3
  29. #define DATEF_JAPANESE_IMPERIAL 4
  30. */
  31. #define CALENDAR_SEC "tm_sec"
  32. #define CALENDAR_MIN "tm_min"
  33. #define CALENDAR_HOUR "tm_hour"
  34. #define CALENDAR_MDAY "tm_mday"
  35. #define CALENDAR_MON "tm_mon"
  36. #define CALENDAR_YEAR "tm_year"
  37. #define CALENDAR_WDAY "tm_wday"
  38. #define CALENDAR_YDAY "tm_yday"
  39. #define CALENDAR_ISDST "tm_isdst"
  40. #endif // DATE_FORMATTER_H