Home
last modified time | relevance | path

Searched refs:IntlCalendar (Results 1 – 25 of 126) sorted by relevance

123456

/php-src/ext/intl/tests/
H A Dcalendar_isSet_empty_time.phpt2 Test IntlCalendar::setDateTime()
8 $intlcal = IntlCalendar::createInstance('UTC');
12 var_dump($intlcal->isSet(IntlCalendar::FIELD_SECOND));
13 var_dump($intlcal->get(IntlCalendar::FIELD_MINUTE));
14 var_dump($intlcal->isSet(IntlCalendar::FIELD_SECOND));
19 var_dump($intlcal->isSet(IntlCalendar::FIELD_SECOND));
20 var_dump($intlcal->get(IntlCalendar::FIELD_MINUTE));
21 var_dump($intlcal->isSet(IntlCalendar::FIELD_SECOND));
25 Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated, use either IntlCa…
H A Dcalendar_get_setSkippedWallTimeOption_basic.phpt2 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 Dcalendar_clear_basic.phpt2 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 Dcalendar_set_error.phpt2 IntlCalendar::set(): bad arguments
44 Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated, use either IntlCa…
45 IntlCalendar::set() expects at most 6 arguments, 7 given
47 Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated, use either IntlCa…
48 IntlCalendar::set() has no variant with exactly 4 parameters
49 IntlCalendar::set(): Argument #1 ($year) must be a valid field
51 …on intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or Int…
54 …on intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or Int…
55 intlcal_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given
H A Dcalendar_set_basic.phpt2 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));
23 …on intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or Int…
H A Dcalendar_getXMaximum_basic.phpt2 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 Dcalendar_getXMinimum_basic.phpt2 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 Dcalendar_set_variation1.phpt2 IntlCalendar::set() argument variations
12 $intlcal = IntlCalendar::createInstance('UTC');
29 Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated, use either IntlCa…
34 Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated, use either IntlCa…
39 Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated, use either IntlCa…
H A Dcalendar_setSkipped_RepeatedWallTimeOption_error.phpt2 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 Dcalendar_isSet_basic.phpt2 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 Dcalendar_getDayOfWeekType_basic.phpt2 IntlCalendar::getDayOfWeekType() basic test
17 $intlcal = IntlCalendar::createInstance('UTC');
20 intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY),
21 $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY),
22 $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY),
23 $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY),
24 $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
H A Dcalendar_getDayOfWeekType_basic2.phpt2 IntlCalendar::getDayOfWeekType() basic test
17 $intlcal = IntlCalendar::createInstance('UTC');
20 intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY),
21 $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY),
22 $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY),
23 $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY),
24 $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY)
H A Dcalendar_get_setRepeatedWallTimeOption_basic.phpt2 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 Dcalendar_add_basic.phpt2 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 Dcalendar_fromDateTime_error.phpt2 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 Dcalendar_get_basic.phpt2 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 Dcalendar_roll_variation1.phpt2 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
25 Deprecated: IntlCalendar::roll(): Passing bool is deprecated, use 1 or -1 instead in %s on line %d
H A Dcalendar_isEquivalentTo_basic.phpt2 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 Dcalendar_setFirstDayOfWeek_basic.phpt2 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 Dcalendar_getTime_basic.phpt2 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 Dcalendar_fieldDifference_basic.phpt2 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 Dcalendar_roll_basic.phpt2 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 Dcalendar_getWeekendTransition_basic.phpt2 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 Dcalendar_setTimeZone_basic.phpt2 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));
/php-src/ext/intl/
H A Dphp_intl.stub.php191 function intlcal_get_time(IntlCalendar $calendar): float|false {}
200 function intlcal_after(IntlCalendar $calendar, IntlCalendar $other): bool {}
202 function intlcal_before(IntlCalendar $calendar, IntlCalendar $other): bool {}
238 function intlcal_get_type(IntlCalendar $calendar): string {}
242 function intlcal_in_daylight_time(IntlCalendar $calendar): bool {}
244 function intlcal_is_lenient(IntlCalendar $calendar): bool {}
246 function intlcal_is_set(IntlCalendar $calendar, int $field): bool {}
248 function intlcal_is_equivalent_to(IntlCalendar $calendar, IntlCalendar $other): bool {}
258 function intlcal_equals(IntlCalendar $calendar, IntlCalendar $other): bool {}
337 IntlCalendar|int|null $calendar = null,
[all …]

Completed in 27 milliseconds

123456