Back to index

php5  5.3.10
php_calendar.h
Go to the documentation of this file.
00001 #ifndef PHP_CALENDAR_H
00002 #define PHP_CALENDAR_H
00003 
00004 extern zend_module_entry calendar_module_entry;
00005 #define       calendar_module_ptr &calendar_module_entry
00006 
00007 /* Functions */
00008 
00009 PHP_MINIT_FUNCTION(calendar);
00010 PHP_MINFO_FUNCTION(calendar);
00011 
00012 PHP_FUNCTION(jdtogregorian);
00013 PHP_FUNCTION(gregoriantojd);
00014 PHP_FUNCTION(jdtojulian);
00015 PHP_FUNCTION(juliantojd);
00016 PHP_FUNCTION(jdtojewish);
00017 PHP_FUNCTION(jewishtojd);
00018 PHP_FUNCTION(jdtofrench);
00019 PHP_FUNCTION(frenchtojd);
00020 PHP_FUNCTION(jddayofweek);
00021 PHP_FUNCTION(jdmonthname);
00022 PHP_FUNCTION(easter_days);
00023 PHP_FUNCTION(easter_date);
00024 PHP_FUNCTION(unixtojd);
00025 PHP_FUNCTION(jdtounix);
00026 PHP_FUNCTION(cal_from_jd);
00027 PHP_FUNCTION(cal_to_jd);
00028 PHP_FUNCTION(cal_days_in_month);
00029 PHP_FUNCTION(cal_info);
00030 
00031 #define phpext_calendar_ptr calendar_module_ptr
00032 
00033 /*
00034  * Specifying the easter calculation method
00035  * 
00036  * DEFAULT is Anglican, ie. use Julian calendar before 1753
00037  * and Gregorian after that. With ROMAN, the cutoff year is 1582.
00038  * ALWAYS_GREGORIAN and ALWAYS_JULIAN force the calendar
00039  * regardless of date.
00040  *
00041  */
00042  
00043 #define CAL_EASTER_DEFAULT                0
00044 #define CAL_EASTER_ROMAN                  1
00045 #define CAL_EASTER_ALWAYS_GREGORIAN       2
00046 #define CAL_EASTER_ALWAYS_JULIAN   3
00047 
00048 #endif