Lines Matching refs:year
46 typedef zend_long (*cal_to_jd_func_t) (int month, int day, int year);
47 typedef void (*cal_from_jd_func_t) (zend_long jd, int *year, int *month, int *day);
48 typedef char *(*cal_as_string_func_t) (int year, int month, int day);
72 #define JEWISH_MONTH_NAME(year) ((monthsPerYear[((year)-1) % 19] == 13)?JewishMonthNameLeap:Jewish… argument
73 #define JEWISH_HEB_MONTH_NAME(year) ((monthsPerYear[((year)-1) % 19] == 13)?JewishMonthHebNameLeap:… argument
184 zend_long cal, month, year; in PHP_FUNCTION() local
188 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &cal, &month, &year) == FAILURE) { in PHP_FUNCTION()
199 sdn_start = calendar->to_jd(year, month, 1); in PHP_FUNCTION()
206 sdn_next = calendar->to_jd(year, 1 + month, 1); in PHP_FUNCTION()
212 if (year == -1) { in PHP_FUNCTION()
216 sdn_next = calendar->to_jd(year + 1, 1, 1); in PHP_FUNCTION()
231 zend_long cal, month, day, year; in PHP_FUNCTION() local
233 if (zend_parse_parameters(ZEND_NUM_ARGS(), "llll", &cal, &month, &day, &year) != SUCCESS) { in PHP_FUNCTION()
242 RETURN_LONG(cal_conversion_table[cal].to_jd(year, month, day)); in PHP_FUNCTION()
250 int month, day, year, dow; in PHP_FUNCTION() local
265 calendar->from_jd(jd, &year, &month, &day); in PHP_FUNCTION()
268 zend_strpprintf(0, "%i/%i/%i", month, day, year)); in PHP_FUNCTION()
272 add_assoc_long(return_value, "year", year); in PHP_FUNCTION()
275 if (cal != CAL_JEWISH || year > 0) { in PHP_FUNCTION()
288 add_assoc_string(return_value, "abbrevmonth", (year > 0 ? JEWISH_MONTH_NAME(year)[month] : "")); in PHP_FUNCTION()
289 add_assoc_string(return_value, "monthname", (year > 0 ? JEWISH_MONTH_NAME(year)[month] : "")); in PHP_FUNCTION()
301 int year, month, day; in PHP_FUNCTION() local
307 SdnToGregorian(julday, &year, &month, &day); in PHP_FUNCTION()
309 RETURN_NEW_STR(zend_strpprintf(0, "%i/%i/%i", month, day, year)); in PHP_FUNCTION()
316 zend_long year, month, day; in PHP_FUNCTION() local
318 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &month, &day, &year) == FAILURE) { in PHP_FUNCTION()
322 RETURN_LONG(GregorianToSdn(year, month, day)); in PHP_FUNCTION()
330 int year, month, day; in PHP_FUNCTION() local
336 SdnToJulian(julday, &year, &month, &day); in PHP_FUNCTION()
338 RETURN_NEW_STR(zend_strpprintf(0, "%i/%i/%i", month, day, year)); in PHP_FUNCTION()
345 zend_long year, month, day; in PHP_FUNCTION() local
347 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &month, &day, &year) == FAILURE) { in PHP_FUNCTION()
351 RETURN_LONG(JulianToSdn(year, month, day)); in PHP_FUNCTION()
456 int year, month, day; in PHP_FUNCTION() local
463 SdnToJewish(julday, &year, &month, &day); in PHP_FUNCTION()
465 RETURN_NEW_STR(zend_strpprintf(0, "%i/%i/%i", month, day, year)); in PHP_FUNCTION()
467 if (year <= 0 || year > 9999) { in PHP_FUNCTION()
472 …b_number_to_chars(day, fl, &dayp), JEWISH_HEB_MONTH_NAME(year)[month], heb_number_to_chars(year, f… in PHP_FUNCTION()
487 zend_long year, month, day; in PHP_FUNCTION() local
489 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &month, &day, &year) == FAILURE) { in PHP_FUNCTION()
493 RETURN_LONG(JewishToSdn(year, month, day)); in PHP_FUNCTION()
501 int year, month, day; in PHP_FUNCTION() local
507 SdnToFrench(julday, &year, &month, &day); in PHP_FUNCTION()
509 RETURN_NEW_STR(zend_strpprintf(0, "%i/%i/%i", month, day, year)); in PHP_FUNCTION()
516 zend_long year, month, day; in PHP_FUNCTION() local
518 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &month, &day, &year) == FAILURE) { in PHP_FUNCTION()
522 RETURN_LONG(FrenchToSdn(year, month, day)); in PHP_FUNCTION()
561 int month, day, year; in PHP_FUNCTION() local
569 SdnToGregorian(julday, &year, &month, &day); in PHP_FUNCTION()
573 SdnToJulian(julday, &year, &month, &day); in PHP_FUNCTION()
577 SdnToJulian(julday, &year, &month, &day); in PHP_FUNCTION()
581 SdnToJewish(julday, &year, &month, &day); in PHP_FUNCTION()
582 monthname = (year > 0 ? JEWISH_MONTH_NAME(year)[month] : ""); in PHP_FUNCTION()
585 SdnToFrench(julday, &year, &month, &day); in PHP_FUNCTION()
590 SdnToGregorian(julday, &year, &month, &day); in PHP_FUNCTION()