common_date.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef COMMON_DATE_H
  15. #define COMMON_DATE_H
  16. #include <unicode/umachine.h>
  17. U_CDECL_BEGIN
  18. #include <php.h>
  19. #include "../intl_error.h"
  20. U_CDECL_END
  21. #ifdef __cplusplus
  22. #include <unicode/timezone.h>
  23. using icu::TimeZone;
  24. U_CFUNC TimeZone *timezone_convert_datetimezone(int type, void *object, int is_datetime, intl_error *outside_error, const char *func);
  25. U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
  26. intl_error *err, const char *func);
  27. #endif
  28. U_CFUNC double intl_zval_to_millis(zval *z, intl_error *err, const char *func);
  29. #endif /* COMMON_DATE_H */