/PHP-8.1/ext/intl/tests/ |
H A D | calendar_get_setSkippedWallTimeOption_basic.phpt | 2 IntlCalendar::get/setSkippedWallTimeOption(): basic test 15 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 16 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 19 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY), 20 $intlcal->get(IntlCalendar::FIELD_MINUTE) 25 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 26 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 30 $intlcal->get(IntlCalendar::FIELD_MINUTE) 35 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 36 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); [all …]
|
H A D | calendar_clear_basic.phpt | 2 IntlCalendar::clear() basic test 10 $intlcal = IntlCalendar::createInstance('UTC'); 13 $intlcal->get(IntlCalendar::FIELD_YEAR), 14 $intlcal->get(IntlCalendar::FIELD_MONTH), 15 $intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH), 16 $intlcal->get(IntlCalendar::FIELD_HOUR), 17 $intlcal->get(IntlCalendar::FIELD_MINUTE), 18 $intlcal->get(IntlCalendar::FIELD_SECOND), 19 $intlcal->get(IntlCalendar::FIELD_MILLISECOND) 22 $intlcal2 = IntlCalendar::createInstance('Europe/Amsterdam');
|
H A D | calendar_getXMaximum_basic.phpt | 2 IntlCalendar::getMaximum(), ::getActualMaximum(), ::getLeastMaximum() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 15 $intlcal->getLeastMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 16 intlcal_get_least_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 17 $intlcal->getActualMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 18 intlcal_get_actual_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 19 $intlcal->getMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 20 intlcal_get_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
|
H A D | calendar_getXMinimum_basic.phpt | 2 IntlCalendar::getMinimum(), ::getActualMinimum(), ::getGreatestMinimum() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 15 $intlcal->getGreatestMinimum(IntlCalendar::FIELD_DAY_OF_MONTH), 16 intlcal_get_greatest_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 17 $intlcal->getActualMinimum(IntlCalendar::FIELD_DAY_OF_MONTH), 18 intlcal_get_actual_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 19 $intlcal->getMinimum(IntlCalendar::FIELD_DAY_OF_MONTH), 20 intlcal_get_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
|
H A D | calendar_setSkipped_RepeatedWallTimeOption_error.phpt | 2 IntlCalendar::setSkipped/RepeatedWallTimeOption(): bad arguments 31 IntlCalendar::setSkippedWallTimeOption(): Argument #1 ($option) must be one of IntlCalendar::WALLTI… 32 IntlCalendar::setRepeatedWallTimeOption(): Argument #1 ($option) must be either IntlCalendar::WALLT… 33 intlcal_set_repeated_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int …
|
H A D | calendar_isSet_basic.phpt | 2 IntlCalendar::isSet() basic test 10 $intlcal = IntlCalendar::createInstance('UTC'); 11 var_dump($intlcal->isSet(IntlCalendar::FIELD_MINUTE)); 12 $intlcal->clear(IntlCalendar::FIELD_MINUTE); 13 var_dump($intlcal->isSet(IntlCalendar::FIELD_MINUTE)); 14 $intlcal->set(IntlCalendar::FIELD_MINUTE, 0); 15 var_dump(intlcal_is_set($intlcal, IntlCalendar::FIELD_MINUTE));
|
H A D | calendar_getDayOfWeekType_basic.phpt | 2 IntlCalendar::getDayOfWeekType() basic test 16 $intlcal = IntlCalendar::createInstance('UTC'); 19 intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY), 20 $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY), 21 $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY), 22 $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY), 23 $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
|
H A D | calendar_getDayOfWeekType_basic2.phpt | 2 IntlCalendar::getDayOfWeekType() basic test 16 $intlcal = IntlCalendar::createInstance('UTC'); 19 intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY), 20 $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY), 21 $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY), 22 $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY), 23 $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
|
H A D | calendar_roll_basic.phpt | 2 IntlCalendar::roll() basic test 13 var_dump($intlcal->roll(IntlCalendar::FIELD_DAY_OF_MONTH, 2)); 14 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 15 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //1 18 var_dump(intlcal_roll($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 2)); 19 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 20 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //1
|
H A D | calendar_roll_variation1.phpt | 2 IntlCalendar::roll() bool argument variation 13 var_dump($intlcal->roll(IntlCalendar::FIELD_DAY_OF_MONTH, true)); 14 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 15 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //29 17 var_dump(intlcal_roll($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, false)); 18 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb) 19 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //28 23 Deprecated: IntlCalendar::roll(): Passing bool is deprecated, use 1 or -1 instead in %s on line %d
|
H A D | calendar_set_basic.phpt | 2 IntlCalendar::set() basic test 12 $intlcal = IntlCalendar::createInstance(); 13 var_dump($intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 2)); 14 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); 15 var_dump(intlcal_set($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 3)); 16 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
|
H A D | calendar_get_setRepeatedWallTimeOption_basic.phpt | 2 IntlCalendar::get/setRepeatedWallTimeOption(): basic test 14 var_dump($intlcal->setRepeatedWallTimeOption(IntlCalendar::WALLTIME_LAST)); 16 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 17 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30); 23 var_dump(intlcal_set_repeated_wall_time_option($intlcal, IntlCalendar::WALLTIME_FIRST)); 25 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2); 26 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
|
H A D | calendar_add_basic.phpt | 2 IntlCalendar::add() basic test 15 $intlcal = IntlCalendar::createInstance('UTC'); 17 $intlcal->add(IntlCalendar::FIELD_DAY_OF_MONTH, 1); 18 $intlcal->add(IntlCalendar::FIELD_HOUR, 5); 19 $intlcal->add(IntlCalendar::FIELD_MINUTE, 6); 20 intlcal_add($intlcal, IntlCalendar::FIELD_SECOND, 7);
|
H A D | calendar_fromDateTime_error.phpt | 2 IntlCalendar::fromDateTime(): errors 12 IntlCalendar::fromDateTime("foobar"); 20 var_dump(IntlCalendar::fromDateTime(new A)); 23 var_dump(IntlCalendar::fromDateTime($date)); 26 var_dump(IntlCalendar::fromDateTime($date)); 30 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: DateTime object is unconstructed in … 33 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: object has an time zone offset that'… 36 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: time zone id 'WEST' extracted from e…
|
H A D | calendar_get_basic.phpt | 2 IntlCalendar::get() basic test 10 $intlcal = IntlCalendar::createInstance('UTC'); 11 $intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 4); 13 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); 14 var_dump(intlcal_get($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH));
|
H A D | calendar_isEquivalentTo_basic.phpt | 2 IntlCalendar::isEquivalentTo() basic test 10 $intlcal1 = IntlCalendar::createInstance('Europe/Amsterdam'); 11 $intlcal2 = IntlCalendar::createInstance('Europe/Lisbon'); 12 $intlcal3 = IntlCalendar::createInstance('Europe/Amsterdam', "nl_NL@calendar=islamic"); 13 $intlcal4 = IntlCalendar::createInstance('Europe/Amsterdam'); 14 $intlcal4->roll(IntlCalendar::FIELD_MONTH, 1);
|
H A D | calendar_setFirstDayOfWeek_basic.phpt | 2 IntlCalendar::setFirstDayOfWeek() basic test 10 $intlcal = IntlCalendar::createInstance('UTC'); 12 IntlCalendar::DOW_TUESDAY, 13 $intlcal->setFirstDayOfWeek(IntlCalendar::DOW_TUESDAY), 15 intlcal_set_first_day_of_week($intlcal, IntlCalendar::DOW_WEDNESDAY),
|
H A D | calendar_getTime_basic.phpt | 2 IntlCalendar::getTime() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 14 $intlcal->set(IntlCalendar::FIELD_YEAR, 2012); 15 $intlcal->set(IntlCalendar::FIELD_MONTH, 1 /* Feb */); 16 $intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 29);
|
H A D | calendar_fieldDifference_basic.phpt | 2 IntlCalendar::fieldDifference() basic test 12 $intlcal = IntlCalendar::createInstance('UTC'); 17 IntlCalendar::FIELD_SECOND), 18 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY)); 26 IntlCalendar::FIELD_MINUTE));
|
H A D | calendar_getWeekendTransition_basic.phpt | 2 IntlCalendar::getWeekendTransition() basic test 12 $intlcal = IntlCalendar::createInstance(); 13 var_dump($intlcal->getWeekendTransition(IntlCalendar::DOW_SUNDAY)); 14 var_dump(intlcal_get_weekend_transition($intlcal, IntlCalendar::DOW_SUNDAY));
|
H A D | calendar_setTimeZone_basic.phpt | 2 IntlCalendar::setTimeZone() basic test 10 $intlcal = IntlCalendar::createInstance('Europe/Amsterdam'); 13 var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET)); 18 var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET)); 24 var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
|
H A D | calendar_before_after_error.phpt | 2 IntlCalendar::before()/after(): bad arguments 63 error: 0, IntlCalendar::after() expects exactly 1 argument, 0 given 65 error: 0, IntlCalendar::before() expects exactly 1 argument, 0 given 67 error: 0, IntlCalendar::after(): Argument #1 ($other) must be of type IntlCalendar, int given 69 error: 0, IntlCalendar::before(): Argument #1 ($other) must be of type IntlCalendar, int given 71 error: 0, IntlCalendar::after() expects exactly 1 argument, 2 given 73 error: 0, IntlCalendar::before() expects exactly 1 argument, 2 given
|
H A D | calendar_isEquivalentTo_error.phpt | 2 IntlCalendar::isEquivalentTo(): bad arguments 51 error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($other) must be of type IntlCalendar, int gi… 53 error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 argument, 2 given 55 error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($other) must be of type IntlCalendar, int gi… 59 error: 0, intlcal_is_equivalent_to(): Argument #2 ($other) must be of type IntlCalendar, int given 61 error: 0, intlcal_is_equivalent_to(): Argument #1 ($calendar) must be of type IntlCalendar, int giv…
|
H A D | calendar_clear_variation1.phpt | 2 IntlCalendar::clear() 1 arg variation 18 $intlcal = IntlCalendar::createInstance('UTC'); 21 var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH)); 22 var_dump($intlcal->clear(IntlCalendar::FIELD_MONTH)); 23 var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
|
/PHP-8.1/ext/intl/ |
H A D | php_intl.stub.php | 24 function intlcal_get(IntlCalendar $calendar, int $field): int|false {} 26 function intlcal_get_time(IntlCalendar $calendar): float|false {} 35 function intlcal_after(IntlCalendar $calendar, IntlCalendar $other): bool {} 37 function intlcal_before(IntlCalendar $calendar, IntlCalendar $other): bool {} 72 function intlcal_get_type(IntlCalendar $calendar): string {} 76 function intlcal_in_daylight_time(IntlCalendar $calendar): bool {} 78 function intlcal_is_lenient(IntlCalendar $calendar): bool {} 82 function intlcal_is_equivalent_to(IntlCalendar $calendar, IntlCalendar $other): bool {} 92 function intlcal_equals(IntlCalendar $calendar, IntlCalendar $other): bool {} 170 IntlCalendar|int|null $calendar = null, [all …]
|