Searched refs:dow (Results 1 – 17 of 17) sorted by relevance
/PHP-8.2/ext/date/lib/ |
H A D | dow.c | 50 timelib_sll c1, y1, m1, dow; in timelib_day_of_week_ex() local 58 dow = positive_mod((c1 + y1 + m1 + (y1 / 4) + d), 7); in timelib_day_of_week_ex() 60 if (dow == 0) { in timelib_day_of_week_ex() 61 dow = 7; in timelib_day_of_week_ex() 64 return dow; in timelib_day_of_week_ex() 149 timelib_sll dow, day; in timelib_daynr_from_weeknr() local 152 dow = timelib_day_of_week(iy, 1, 1); in timelib_daynr_from_weeknr() 154 day = 0 - (dow > 4 ? dow - 7 : dow); in timelib_daynr_from_weeknr()
|
H A D | parse_posix.c | 235 tmp->mwd.dow = read_number(ptr); in read_trans_spec_mwd() 236 if (tmp->mwd.dow == TIMELIB_UNSET) { in read_trans_spec_mwd() 439 int i, d, m1, yy0, yy1, yy2, dow; in calc_transition() local 448 dow = ((26 * m1 - 2) / 10 + 1 + yy2 + yy2 / 4 + yy1 / 4 - 2 * yy1) % 7; in calc_transition() 449 if (dow < 0) { in calc_transition() 450 dow += DAYS_PER_WEEK; in calc_transition() 455 d = psi->mwd.dow - dow; in calc_transition()
|
H A D | tm2unixtime.c | 277 timelib_sll count, dow, rem; in do_adjust_special_weekday() local 280 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday() 291 if (dow == 0) { in do_adjust_special_weekday() 293 } else if (dow == 6) { in do_adjust_special_weekday() 296 } else if (dow == 6) { in do_adjust_special_weekday() 300 } else if (dow + rem > 5) { in do_adjust_special_weekday() 310 if (dow == 6) { in do_adjust_special_weekday() 312 } else if (dow == 0) { in do_adjust_special_weekday() 315 } else if (dow == 0) { in do_adjust_special_weekday() 317 } else if (dow + rem < 1) { in do_adjust_special_weekday()
|
H A D | timelib.h | 163 int dow; member
|
/PHP-8.2/ext/calendar/tests/ |
H A D | cal_from_jd.phpt | 19 [dow] => 0 31 [dow] => 5 43 [dow] => 4 55 [dow] => 1
|
H A D | bug71894.phpt | 19 ["dow"]=>
|
H A D | bug53574_1.phpt | 27 ["dow"]=>
|
H A D | bug53574_2.phpt | 27 ["dow"]=>
|
H A D | bug55797_1.phpt | 27 ["dow"]=>
|
H A D | bug55797_2.phpt | 27 ["dow"]=>
|
/PHP-8.2/ext/calendar/ |
H A D | jewish.c | 391 int dow; in Tishri1() local 396 dow = tishri1 % 7; in Tishri1() 406 ((!leapYear) && dow == TUESDAY && moladHalakim >= AM3_11_20) || in Tishri1() 407 (lastWasLeapYear && dow == MONDAY && moladHalakim >= AM9_32_43)) { in Tishri1() 409 dow++; in Tishri1() 410 if (dow == 7) { in Tishri1() 411 dow = 0; in Tishri1() 416 if (dow == WEDNESDAY || dow == FRIDAY || dow == SUNDAY) { in Tishri1()
|
H A D | config.w32 | 6 EXTENSION("calendar", "calendar.c dow.c french.c gregor.c jewish.c \
|
H A D | config.m4 | 8 …PHP_NEW_EXTENSION(calendar, calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix…
|
H A D | calendar.c | 250 int month, day, year, dow; in PHP_FUNCTION() local 276 dow = DayOfWeek(jd); in PHP_FUNCTION() 277 add_assoc_long(return_value, "dow", dow); in PHP_FUNCTION() 278 add_assoc_string(return_value, "abbrevdayname", DayNameShort[dow]); in PHP_FUNCTION() 279 add_assoc_string(return_value, "dayname", DayNameLong[dow]); in PHP_FUNCTION()
|
/PHP-8.2/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 501 zend_long dow; in PHP_FUNCTION() local 505 "Ol", &object, Calendar_ce_ptr, &dow) == FAILURE) { in PHP_FUNCTION() 509 ZEND_VALUE_ERROR_INVALID_DAY_OF_WEEK(dow, 2); in PHP_FUNCTION() 514 (UCalendarDaysOfWeek)dow, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 665 zend_long dow; in PHP_FUNCTION() local 669 "Ol", &object, Calendar_ce_ptr, &dow) == FAILURE) { in PHP_FUNCTION() 673 ZEND_VALUE_ERROR_INVALID_DAY_OF_WEEK(dow, 2); in PHP_FUNCTION() 783 zend_long dow; in PHP_FUNCTION() local 787 "Ol", &object, Calendar_ce_ptr, &dow) == FAILURE) { in PHP_FUNCTION() 791 ZEND_VALUE_ERROR_INVALID_DAY_OF_WEEK(dow, 2); in PHP_FUNCTION() [all …]
|
/PHP-8.2/ext/date/ |
H A D | config.w32 | 5 ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_posix.c parse_tz.c tm2unixt…
|
H A D | config0.m4 | 12 timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c lib/parse_posix.c
|
Completed in 58 milliseconds