dateformat.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: Kirti Velankar <kirtig@yahoo-inc.com> |
  12. +----------------------------------------------------------------------+
  13. */
  14. #ifndef DATE_FORMATTER_H
  15. #define DATE_FORMATTER_H
  16. #include <php.h>
  17. void dateformat_register_constants( INIT_FUNC_ARGS );
  18. /*
  19. These are not necessary at this point of time
  20. #define DATEF_GREGORIAN 1
  21. #define DATEF_CUSTOMARY 2
  22. #define DATEF_BUDDHIST 3
  23. #define DATEF_JAPANESE_IMPERIAL 4
  24. */
  25. #define CALENDAR_SEC "tm_sec"
  26. #define CALENDAR_MIN "tm_min"
  27. #define CALENDAR_HOUR "tm_hour"
  28. #define CALENDAR_MDAY "tm_mday"
  29. #define CALENDAR_MON "tm_mon"
  30. #define CALENDAR_YEAR "tm_year"
  31. #define CALENDAR_WDAY "tm_wday"
  32. #define CALENDAR_YDAY "tm_yday"
  33. #define CALENDAR_ISDST "tm_isdst"
  34. #endif // DATE_FORMATTER_H