Home
last modified time | relevance | path

Searched refs:cal (Results 1 – 25 of 37) sorted by relevance

12

/PHP-8.0/ext/intl/tests/
H A Dcalendar_createInstance_variation1.phpt14 $cal = intlcal_create_instance('Europe/Amsterdam');
15 print_R($cal->getTimeZone());
16 print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
20 print_R($cal->getTimeZone());
21 print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
25 print_R($cal->getTimeZone());
26 print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
29 $cal = intlcal_create_instance(null, "pt");
30 print_R($cal->getTimeZone());
31 print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
[all …]
H A Dcalendar_fromDateTime_basic.phpt13 $cal = IntlCalendar::fromDateTime('2012-01-01 00:00:00 Europe/Rome');
15 $cal->getTime(),
17 $cal->getTimeZone()->getID(),
18 $cal->getLocale(1)
22 $cal = IntlCalendar::fromDateTime(new DateTime('2012-01-01 00:00:00 PST'), "pt_PT");
24 $cal->getTime(),
26 $cal->getTimeZone()->getID(),
27 $cal->getLocale(1)
32 $cal = intlcal_from_date_time(new DateTime('2012-01-01 00:00:00 +03:40'));
34 $cal->getTime(),
[all …]
H A Ddateformat_formatObject_calendar.phpt13 $cal = IntlCalendar::fromDateTime('2012-01-01 00:00:00'); //Europe/Lisbon
14 echo IntlDateFormatter::formatObject($cal), "\n";
15 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
18 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
20 $cal = IntlCalendar::fromDateTime('2012-01-01 05:00:00+03:00');
21 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
23 $cal = IntlCalendar::createInstance(null,'en-US@calendar=islamic-civil');
24 $cal->setTime(strtotime('2012-01-01 00:00:00')*1000.);
25 echo IntlDateFormatter::formatObject($cal), "\n";
[all …]
H A Ddateformat_formatObject_calendar_variant2.phpt13 $cal = IntlCalendar::fromDateTime('2012-01-01 00:00:00'); //Europe/Lisbon
14 echo IntlDateFormatter::formatObject($cal), "\n";
15 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
18 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
20 $cal = IntlCalendar::fromDateTime('2012-01-01 05:00:00+03:00');
21 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
23 $cal = IntlCalendar::createInstance(null,'en-US@calendar=islamic-civil');
24 $cal->setTime(strtotime('2012-01-01 00:00:00')*1000.);
25 echo IntlDateFormatter::formatObject($cal), "\n";
[all …]
H A Ddateformat_formatObject_calendar_variant5.phpt13 $cal = IntlCalendar::fromDateTime('2012-01-01 00:00:00'); //Europe/Lisbon
14 echo IntlDateFormatter::formatObject($cal), "\n";
15 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
18 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
20 $cal = IntlCalendar::fromDateTime('2012-01-01 05:00:00+03:00');
21 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
23 $cal = IntlCalendar::createInstance(null,'en-US@calendar=islamic-civil');
24 $cal->setTime(strtotime('2012-01-01 00:00:00')*1000.);
25 echo IntlDateFormatter::formatObject($cal), "\n";
[all …]
H A Ddateformat_formatObject_calendar_variant3.phpt14 $cal = IntlCalendar::fromDateTime('2012-01-01 00:00:00'); //Europe/Lisbon
15 echo IntlDateFormatter::formatObject($cal), "\n";
16 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
17 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
19 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
21 $cal = IntlCalendar::fromDateTime('2012-01-01 05:00:00+03:00');
22 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
24 $cal = IntlCalendar::createInstance(null,'en-US@calendar=islamic-civil');
25 $cal->setTime(strtotime('2012-01-01 00:00:00')*1000.);
26 echo IntlDateFormatter::formatObject($cal), "\n";
[all …]
H A Ddateformat_formatObject_calendar_variant4.phpt14 $cal = IntlCalendar::fromDateTime('2012-01-01 00:00:00'); //Europe/Lisbon
15 echo IntlDateFormatter::formatObject($cal), "\n";
16 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
17 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
19 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
21 $cal = IntlCalendar::fromDateTime('2012-01-01 05:00:00+03:00');
22 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
24 $cal = IntlCalendar::createInstance(null,'en-US@calendar=islamic-civil');
25 $cal->setTime(strtotime('2012-01-01 00:00:00')*1000.);
26 echo IntlDateFormatter::formatObject($cal), "\n";
[all …]
H A Dcalendar_createInstance_basic.phpt14 $cal = IntlCalendar::createInstance();
15 print_R($cal->getTimeZone());
16 print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
18 print_R($cal->getType());
21 $timeMillis = $cal->getTime();
H A Dcalendar_toDateTime_error.phpt12 $cal = new IntlGregorianCalendar("Etc/Unknown");
14 var_dump($cal->toDateTime());
20 var_dump(intlcal_to_date_time($cal));
25 $cal = IntlCalendar::createInstance("Etc/Unknown");
27 var_dump($cal->toDateTime());
33 var_dump(intlcal_to_date_time($cal));
H A Ddateformat_create_cal_arg.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
19 $cal = IntlCalendar::createInstance('UTC', 'en@calendar=islamic');
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
H A Ddateformat_create_cal_arg_variant2.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
19 $cal = IntlCalendar::createInstance('UTC', 'en@calendar=islamic');
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
H A Ddateformat_formatObject_error.phpt24 $cal = IntlCalendar::createInstance();
25 var_dump(IntlDateFormatter::formatObject($cal, -2));
26 var_dump(IntlDateFormatter::formatObject($cal, array()));
27 var_dump(IntlDateFormatter::formatObject($cal, array(1,2,3)));
28 var_dump(IntlDateFormatter::formatObject($cal, array(array(), 1)));
29 var_dump(IntlDateFormatter::formatObject($cal, array(1, -2)));
30 var_dump(IntlDateFormatter::formatObject($cal, ""));
H A Ddateformat_create_cal_arg_variant3.phpt16 $cal = new IntlGregorianCalendar('UTC', NULL);
17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $cal = IntlCalendar::createInstance('UTC', 'en@calendar=islamic');
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
25 $cal = new IntlGregorianCalendar('UTC', NULL);
26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
H A Ddateformat_create_cal_arg_variant4.phpt16 $cal = new IntlGregorianCalendar('UTC', NULL);
17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $cal = IntlCalendar::createInstance('UTC', 'en@calendar=islamic');
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
25 $cal = new IntlGregorianCalendar('UTC', NULL);
26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
H A Ddateformat_create_cal_arg_variant5.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
19 $cal = IntlCalendar::createInstance('UTC', 'en@calendar=islamic');
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
H A Dcalendar_toDateTime_basic.phpt13 $cal = new IntlGregorianCalendar(2012,04,17,17,35,36);
15 $dt = $cal->toDateTime();
H A Ddateformat_get_set_calendar.phpt28 //changing the calendar with a cal type should not change tz
33 $cal = IntlCalendar::createInstance("UTC");
34 $df->setCalendar($cal);
H A Ddateformat_get_set_calendar_variant2.phpt28 //changing the calendar with a cal type should not change tz
33 $cal = IntlCalendar::createInstance("UTC");
34 $df->setCalendar($cal);
H A Ddateformat_get_set_calendar_variant3.phpt29 //changing the calendar with a cal type should not change tz
34 $cal = IntlCalendar::createInstance("UTC");
35 $df->setCalendar($cal);
H A Ddateformat_get_set_calendar_variant_icu70.phpt29 //changing the calendar with a cal type should not change tz
34 $cal = IntlCalendar::createInstance("UTC");
35 $df->setCalendar($cal);
/PHP-8.0/ext/intl/dateformat/
H A Ddateformat_helpers.cpp33 …const char *func_name, intl_error *err, Calendar*& cal, zend_long& cal_int_type, bool& calendar_ow… in datefmt_process_calendar_arg() argument
40 cal = new GregorianCalendar(locale, status); in datefmt_process_calendar_arg()
57 cal = Calendar::createInstance(locale, status); in datefmt_process_calendar_arg()
59 cal = new GregorianCalendar(locale, status); in datefmt_process_calendar_arg()
66 cal = calendar_fetch_native_calendar(calendar_obj); in datefmt_process_calendar_arg()
67 if (cal == NULL) { in datefmt_process_calendar_arg()
86 if (cal == NULL && !U_FAILURE(status)) { in datefmt_process_calendar_arg()
H A Ddateformat_attrcpp.cpp139 const Calendar *cal = fetch_datefmt(dfo)->getCalendar(); in PHP_FUNCTION() local
140 if (cal == NULL) { in PHP_FUNCTION()
144 Calendar *cal_clone = cal->clone(); in PHP_FUNCTION()
179 Calendar *cal; in PHP_FUNCTION() local
188 "datefmt_set_calendar", INTL_DATA_ERROR_P(dfo), cal, cal_type, cal_owned) == FAILURE in PHP_FUNCTION()
200 delete cal; in PHP_FUNCTION()
203 cal->adoptTimeZone(old_timezone); in PHP_FUNCTION()
205 cal = cal->clone(); in PHP_FUNCTION()
206 if (cal == NULL) { in PHP_FUNCTION()
214 fetch_datefmt(dfo)->adoptCalendar(cal); in PHP_FUNCTION()
H A Ddateformat_create.cpp59 Calendar *cal = NULL; in datefmt_ctor() local
108 INTL_DATA_ERROR_P(dfo), cal, calendar_type, calendar_owned) == FAILURE in datefmt_ctor()
152 df->adoptCalendar(cal); in datefmt_ctor()
155 df->setCalendar(*cal); in datefmt_ctor()
180 if (cal != NULL && calendar_owned) { in datefmt_ctor()
181 delete cal; in datefmt_ctor()
H A Ddateformat_format_object.cpp76 Calendar *cal = NULL; in PHP_FUNCTION() local
177 cal = obj_cal->clone(); in PHP_FUNCTION()
183 cal = new GregorianCalendar(Locale::createFromName(locale_str), status); in PHP_FUNCTION()
226 df->adoptCalendar(cal); in PHP_FUNCTION()
227 cal = NULL; in PHP_FUNCTION()
251 delete cal; in PHP_FUNCTION()
/PHP-8.0/ext/calendar/
H A Dcalendar.c175 zend_long cal = -1; in PHP_FUNCTION() local
181 if (cal == -1) { in PHP_FUNCTION()
194 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
199 _php_cal_info(cal, return_value); in PHP_FUNCTION()
206 zend_long cal, month, year; in PHP_FUNCTION() local
214 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
253 zend_long cal, month, day, year; in PHP_FUNCTION() local
259 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
271 zend_long jd, cal; in PHP_FUNCTION() local
279 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
[all …]

Completed in 29 milliseconds

12