Home
last modified time | relevance | path

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

12345

/PHP-7.0/ext/intl/tests/
H A Dcalendar_get_setSkippedWallTimeOption_basic.phpt2 IntlCalendar::get/setSkippedWallTimeOption(): basic test
20 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2);
21 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
24 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY),
25 $intlcal->get(IntlCalendar::FIELD_MINUTE)
31 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
34 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY),
35 $intlcal->get(IntlCalendar::FIELD_MINUTE)
41 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
44 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY),
[all …]
H A Dcalendar_clear_basic.phpt2 IntlCalendar::clear() basic test
12 $intlcal = IntlCalendar::createInstance('UTC');
15 $intlcal->get(IntlCalendar::FIELD_YEAR),
16 $intlcal->get(IntlCalendar::FIELD_MONTH),
17 $intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH),
18 $intlcal->get(IntlCalendar::FIELD_HOUR),
19 $intlcal->get(IntlCalendar::FIELD_MINUTE),
20 $intlcal->get(IntlCalendar::FIELD_SECOND),
21 $intlcal->get(IntlCalendar::FIELD_MILLISECOND)
24 $intlcal2 = IntlCalendar::createInstance('Europe/Amsterdam');
H A Dcalendar_get_getActualMaximum_Minumum_error.phpt2 IntlCalendar::get/getActualMaximum/getActualMinimum(): bad arguments
32 Warning: IntlCalendar::get() expects exactly 1 parameter, 0 given in %s on line %d
34 Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d
37 Warning: IntlCalendar::getActualMaximum() expects exactly 1 parameter, 0 given in %s on line %d
42 Warning: IntlCalendar::getActualMinimum() expects exactly 1 parameter, 0 given in %s on line %d
47 Warning: IntlCalendar::get(): intlcal_get: invalid field in %s on line %d
56 Warning: IntlCalendar::get() expects parameter 1 to be integer, string given in %s on line %d
58 Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d
71 Warning: IntlCalendar::get() expects exactly 1 parameter, 2 given in %s on line %d
73 Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d
[all …]
H A Dcalendar_getXMaximum_basic.phpt2 IntlCalendar::getMaximum(), ::getActualMaximum(), ::getLeastMaximum() basic test
14 $intlcal = IntlCalendar::createInstance('UTC');
17 $intlcal->getLeastMaximum(IntlCalendar::FIELD_DAY_OF_MONTH),
18 intlcal_get_least_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH),
19 $intlcal->getActualMaximum(IntlCalendar::FIELD_DAY_OF_MONTH),
20 intlcal_get_actual_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH),
21 $intlcal->getMaximum(IntlCalendar::FIELD_DAY_OF_MONTH),
22 intlcal_get_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
H A Dcalendar_getXMinimum_basic.phpt2 IntlCalendar::getMinimum(), ::getActualMinimum(), ::getGreatestMinimum() basic test
14 $intlcal = IntlCalendar::createInstance('UTC');
17 $intlcal->getGreatestMinimum(IntlCalendar::FIELD_DAY_OF_MONTH),
18 intlcal_get_greatest_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH),
19 $intlcal->getActualMinimum(IntlCalendar::FIELD_DAY_OF_MONTH),
20 intlcal_get_actual_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH),
21 $intlcal->getMinimum(IntlCalendar::FIELD_DAY_OF_MONTH),
22 intlcal_get_minimum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
H A Dcalendar_fromDateTime_error.phpt2 IntlCalendar::fromDateTime(): errors
13 var_dump(IntlCalendar::fromDateTime());
14 var_dump(IntlCalendar::fromDateTime(0,1,2));
17 IntlCalendar::fromDateTime("foobar");
25 var_dump(IntlCalendar::fromDateTime(new A));
28 var_dump(IntlCalendar::fromDateTime($date));
31 var_dump(IntlCalendar::fromDateTime($date));
37 Warning: IntlCalendar::fromDateTime() expects at least 1 parameter, 0 given in %s on line %d
39 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: bad arguments in %s on line %d
42 Warning: IntlCalendar::fromDateTime() expects at most 2 parameters, 3 given in %s on line %d
[all …]
H A Dcalendar_isSet_basic.phpt2 IntlCalendar::isSet() basic test
12 $intlcal = IntlCalendar::createInstance('UTC');
13 var_dump($intlcal->isSet(IntlCalendar::FIELD_MINUTE));
14 $intlcal->clear(IntlCalendar::FIELD_MINUTE);
15 var_dump($intlcal->isSet(IntlCalendar::FIELD_MINUTE));
16 $intlcal->set(IntlCalendar::FIELD_MINUTE, 0);
17 var_dump(intlcal_is_set($intlcal, IntlCalendar::FIELD_MINUTE));
H A Dcalendar_getDayOfWeekType_basic2.phpt2 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 Dcalendar_getDayOfWeekType_basic.phpt2 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 Dcalendar_roll_basic.phpt2 IntlCalendar::roll() basic test
15 var_dump($intlcal->roll(IntlCalendar::FIELD_DAY_OF_MONTH, 2));
16 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb)
17 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //1
20 var_dump(intlcal_roll($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 2));
21 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb)
22 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //1
H A Dcalendar_roll_variation1.phpt2 IntlCalendar::roll() bool argument variation
15 var_dump($intlcal->roll(IntlCalendar::FIELD_DAY_OF_MONTH, true));
16 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb)
17 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //29
19 var_dump(intlcal_roll($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, false));
20 var_dump($intlcal->get(IntlCalendar::FIELD_MONTH)); //1 (Feb)
21 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH)); //28
H A Dcalendar_setSkipped_RepeatedWallTimeOption_error.phpt2 IntlCalendar::setSkipped/RepeatedWallTimeOption(): bad arguments
36 Warning: IntlCalendar::setSkippedWallTimeOption() expects exactly 1 parameter, 0 given in %s on lin…
38 Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad argume…
41 Warning: IntlCalendar::setRepeatedWallTimeOption() expects exactly 1 parameter, 0 given in %s on li…
43 Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: bad argu…
46 Warning: IntlCalendar::setSkippedWallTimeOption() expects exactly 1 parameter, 2 given in %s on lin…
48 Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad argume…
51 Warning: IntlCalendar::setRepeatedWallTimeOption() expects exactly 1 parameter, 2 given in %s on li…
56 Warning: IntlCalendar::setSkippedWallTimeOption() expects parameter 1 to be integer, array given in…
58 Warning: IntlCalendar::setSkippedWallTimeOption(): intlcal_set_skipped_wall_time_option: bad argume…
[all …]
H A Dcalendar_set_basic.phpt2 IntlCalendar::set() basic test
14 $intlcal = IntlCalendar::createInstance();
15 var_dump($intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 2));
16 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
17 var_dump(intlcal_set($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 3));
18 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
H A Dcalendar_add_basic.phpt2 IntlCalendar::add() basic test
17 $intlcal = IntlCalendar::createInstance('UTC');
19 $intlcal->add(IntlCalendar::FIELD_DAY_OF_MONTH, 1);
20 $intlcal->add(IntlCalendar::FIELD_HOUR, 5);
21 $intlcal->add(IntlCalendar::FIELD_MINUTE, 6);
22 intlcal_add($intlcal, IntlCalendar::FIELD_SECOND, 7);
H A Dcalendar_get_setRepeatedWallTimeOption_basic.phpt2 IntlCalendar::get/setRepeatedWallTimeOption(): basic test
19 var_dump($intlcal->setRepeatedWallTimeOption(IntlCalendar::WALLTIME_LAST));
21 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2);
22 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
28 var_dump(intlcal_set_repeated_wall_time_option($intlcal, IntlCalendar::WALLTIME_FIRST));
30 $intlcal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 2);
31 $intlcal->set(IntlCalendar::FIELD_MINUTE, 30);
H A Dcalendar_get_Least_Greatest_Minimum_Maximum_error.phpt2 IntlCalendar::get/Least/Greatest/Minimum/Maximum(): bad arguments
58 Warning: IntlCalendar::getLeastMaximum() expects exactly 1 parameter, 0 given in %s on line %d
60 Warning: IntlCalendar::getLeastMaximum(): intlcal_get_least_maximum: bad arguments in %s on line %d
63 Warning: IntlCalendar::getMaximum() expects exactly 1 parameter, 0 given in %s on line %d
65 Warning: IntlCalendar::getMaximum(): intlcal_get_maximum: bad arguments in %s on line %d
68 Warning: IntlCalendar::getGreatestMinimum() expects exactly 1 parameter, 0 given in %s on line %d
73 Warning: IntlCalendar::getMinimum() expects exactly 1 parameter, 0 given in %s on line %d
75 Warning: IntlCalendar::getMinimum(): intlcal_get_minimum: bad arguments in %s on line %d
78 Warning: IntlCalendar::getLeastMaximum(): intlcal_get_least_maximum: invalid field in %s on line %d
81 Warning: IntlCalendar::getMaximum(): intlcal_get_maximum: invalid field in %s on line %d
[all …]
H A Dcalendar_before_after_error.phpt2 IntlCalendar::before()/after(): bad arguments
64 error: 2, IntlCalendar::after() expects exactly 1 parameter, 0 given
65 error: 2, IntlCalendar::after(): intlcal_before/after: bad arguments
67 error: 2, IntlCalendar::before() expects exactly 1 parameter, 0 given
68 error: 2, IntlCalendar::before(): intlcal_before/after: bad arguments
70 error: 0, Argument 1 passed to IntlCalendar::after() must be an instance of IntlCalendar, integer g…
72 error: 0, Argument 1 passed to IntlCalendar::before() must be an instance of IntlCalendar, integer …
74 error: 2, IntlCalendar::after() expects exactly 1 parameter, 2 given
75 error: 2, IntlCalendar::after(): intlcal_before/after: bad arguments
77 error: 2, IntlCalendar::before() expects exactly 1 parameter, 2 given
[all …]
H A Dcalendar_get_basic.phpt2 IntlCalendar::get() basic test
12 $intlcal = IntlCalendar::createInstance('UTC');
13 $intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 4);
15 var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
16 var_dump(intlcal_get($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH));
H A Dcalendar_isEquivalentTo_basic.phpt2 IntlCalendar::isEquivalentTo() basic test
12 $intlcal1 = IntlCalendar::createInstance('Europe/Amsterdam');
13 $intlcal2 = IntlCalendar::createInstance('Europe/Lisbon');
14 $intlcal3 = IntlCalendar::createInstance('Europe/Amsterdam', "nl_NL@calendar=islamic");
15 $intlcal4 = IntlCalendar::createInstance('Europe/Amsterdam');
16 $intlcal4->roll(IntlCalendar::FIELD_MONTH, true);
H A Dcalendar_setFirstDayOfWeek_basic.phpt2 IntlCalendar::setFirstDayOfWeek() basic test
12 $intlcal = IntlCalendar::createInstance('UTC');
14 IntlCalendar::DOW_TUESDAY,
15 $intlcal->setFirstDayOfWeek(IntlCalendar::DOW_TUESDAY),
17 intlcal_set_first_day_of_week($intlcal, IntlCalendar::DOW_WEDNESDAY),
H A Dcalendar_equals_error.phpt2 IntlCalendar::equals(): bad arguments
49 error: 2, IntlCalendar::equals() expects exactly 1 parameter, 0 given
50 error: 2, IntlCalendar::equals(): intlcal_equals: bad arguments
52 error: 0, Argument 1 passed to IntlCalendar::equals() must be an instance of IntlCalendar, instance…
54 error: 0, Argument 1 passed to IntlCalendar::equals() must be an instance of IntlCalendar, integer …
56 error: 0, Argument 2 passed to intlcal_equals() must be an instance of IntlCalendar, array given
58 error: 0, Argument 1 passed to intlcal_equals() must be an instance of IntlCalendar, integer given
H A Dcalendar_fieldDifference_basic.phpt2 IntlCalendar::fieldDifference() basic test
14 $intlcal = IntlCalendar::createInstance('UTC');
19 IntlCalendar::FIELD_SECOND),
20 $intlcal->get(IntlCalendar::FIELD_HOUR_OF_DAY));
28 IntlCalendar::FIELD_MINUTE));
H A Dcalendar_getTime_basic.phpt2 IntlCalendar::getTime() basic test
14 $intlcal = IntlCalendar::createInstance('UTC');
16 $intlcal->set(IntlCalendar::FIELD_YEAR, 2012);
17 $intlcal->set(IntlCalendar::FIELD_MONTH, 1 /* Feb */);
18 $intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 29);
H A Dcalendar_clear_variation1.phpt2 IntlCalendar::clear() 1 arg variation
14 $intlcal = IntlCalendar::createInstance('UTC');
17 var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
18 var_dump($intlcal->clear(IntlCalendar::FIELD_MONTH));
19 var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
H A Dcalendar_isEquivalentTo_error.phpt2 IntlCalendar::isEquivalentTo(): bad arguments
53 error: 0, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of IntlCalendar, …
55 error: 2, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given
56 error: 2, IntlCalendar::isEquivalentTo(): intlcal_is_equivalent_to: bad arguments
58 error: 0, Argument 1 passed to IntlCalendar::isEquivalentTo() must be an instance of IntlCalendar, …
63 error: 0, Argument 2 passed to intlcal_is_equivalent_to() must be an instance of IntlCalendar, inte…
65 error: 0, Argument 1 passed to intlcal_is_equivalent_to() must be an instance of IntlCalendar, inte…

Completed in 78 milliseconds

12345