/PHP-5.5/ext/intl/tests/ |
H A D | calendar_createInstance_variation1.phpt | 16 $cal = intlcal_create_instance('Europe/Amsterdam'); 17 print_R($cal->getTimeZone()); 18 print_R($cal->getLocale(Locale::ACTUAL_LOCALE)); 22 print_R($cal->getTimeZone()); 23 print_R($cal->getLocale(Locale::ACTUAL_LOCALE)); 27 print_R($cal->getTimeZone()); 28 print_R($cal->getLocale(Locale::ACTUAL_LOCALE)); 31 $cal = intlcal_create_instance(null, "pt"); 32 print_R($cal->getTimeZone()); 33 print_R($cal->getLocale(Locale::ACTUAL_LOCALE)); [all …]
|
H A D | calendar_fromDateTime_basic.phpt | 13 $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 D | dateformat_formatObject_calendar.phpt | 13 $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 D | dateformat_formatObject_calendar_variant2.phpt | 13 $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 D | dateformat_formatObject_calendar_variant4.phpt | 13 $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 D | dateformat_formatObject_calendar_variant3.phpt | 14 $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 D | calendar_createInstance_basic.phpt | 16 $cal = IntlCalendar::createInstance(); 17 print_R($cal->getTimeZone()); 18 print_R($cal->getLocale(Locale::ACTUAL_LOCALE)); 20 print_R($cal->getType()); 23 $timeMillis = $cal->getTime();
|
H A D | calendar_toDateTime_error.phpt | 12 $cal = new IntlGregorianCalendar(); 13 var_dump($cal->toDateTime(3)); 15 var_dump(intlcal_to_date_time($cal, 3)); 17 $cal = new IntlGregorianCalendar("Etc/Unknown"); 19 var_dump($cal->toDateTime());
|
H A D | dateformat_create_cal_arg.phpt | 15 $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 D | dateformat_create_cal_arg_variant4.phpt | 15 $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 D | dateformat_create_cal_arg_variant2.phpt | 15 $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 D | dateformat_create_cal_arg_variant3.phpt | 16 $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 D | dateformat_formatObject_error.phpt | 22 $cal = IntlCalendar::createInstance(); 23 var_dump(IntlDateFormatter::formatObject($cal, -2)); 24 var_dump(IntlDateFormatter::formatObject($cal, array())); 25 var_dump(IntlDateFormatter::formatObject($cal, array(1,2,3))); 26 var_dump(IntlDateFormatter::formatObject($cal, array(array(), 1))); 27 var_dump(IntlDateFormatter::formatObject($cal, array(1, -2))); 28 var_dump(IntlDateFormatter::formatObject($cal, "")); 29 var_dump(IntlDateFormatter::formatObject($cal, "YYYY", array()));
|
H A D | calendar_toDateTime_basic.phpt | 13 $cal = new IntlGregorianCalendar(2012,04,17,17,35,36); 15 $dt = $cal->toDateTime();
|
H A D | dateformat_get_set_calendar.phpt | 28 //changing the calendar with a cal type should not change tz 33 $cal = IntlCalendar::createInstance("UTC"); 34 $df->setCalendar($cal);
|
H A D | dateformat_get_set_calendar_variant2.phpt | 28 //changing the calendar with a cal type should not change tz 33 $cal = IntlCalendar::createInstance("UTC"); 34 $df->setCalendar($cal);
|
H A D | dateformat_get_set_calendar_variant4.phpt | 28 //changing the calendar with a cal type should not change tz 33 $cal = IntlCalendar::createInstance("UTC"); 34 $df->setCalendar($cal);
|
H A D | dateformat_get_set_calendar_variant3.phpt | 29 //changing the calendar with a cal type should not change tz 34 $cal = IntlCalendar::createInstance("UTC"); 35 $df->setCalendar($cal);
|
H A D | msgfmt_format_intlcalendar.phpt | 13 $cal = new IntlGregorianCalendar(2012,04,17,17,35,36); 16 echo $msgf->format(array($cal)), "\n";
|
H A D | msgfmt_format_intlcalendar_variant2.phpt | 13 $cal = new IntlGregorianCalendar(2012,04,17,17,35,36); 16 echo $msgf->format(array($cal)), "\n";
|
H A D | msgfmt_format_intlcalendar_variant4.phpt | 13 $cal = new IntlGregorianCalendar(2012,04,17,17,35,36); 16 echo $msgf->format(array($cal)), "\n";
|
/PHP-5.5/ext/intl/dateformat/ |
H A D | dateformat_helpers.cpp | 35 Calendar*& cal, in datefmt_process_calendar_arg() argument 45 cal = new GregorianCalendar(locale, status); in datefmt_process_calendar_arg() 63 cal = Calendar::createInstance(locale, status); in datefmt_process_calendar_arg() 65 cal = new GregorianCalendar(locale, status); in datefmt_process_calendar_arg() 75 cal = calendar_fetch_native_calendar(calendar_zv TSRMLS_CC); in datefmt_process_calendar_arg() 76 if (cal == NULL) { in datefmt_process_calendar_arg() 95 if (cal == NULL && !U_FAILURE(status)) { in datefmt_process_calendar_arg()
|
H A D | dateformat_attrcpp.cpp | 183 const Calendar *cal = fetch_datefmt(dfo)->getCalendar(); in PHP_FUNCTION() local 184 if (cal == NULL) { in PHP_FUNCTION() 188 Calendar *cal_clone = cal->clone(); in PHP_FUNCTION() 219 Calendar *cal; in PHP_FUNCTION() local 228 "datefmt_set_calendar", INTL_DATA_ERROR_P(dfo), cal, cal_type, in PHP_FUNCTION() 240 delete cal; in PHP_FUNCTION() 243 cal->adoptTimeZone(old_timezone); in PHP_FUNCTION() 245 cal = cal->clone(); in PHP_FUNCTION() 246 if (cal == NULL) { in PHP_FUNCTION() 254 fetch_datefmt(dfo)->adoptCalendar(cal); in PHP_FUNCTION()
|
H A D | dateformat_format_object.cpp | 72 Calendar *cal = NULL; in PHP_FUNCTION() local 156 cal = obj_cal->clone(); in PHP_FUNCTION() 162 cal = new GregorianCalendar(Locale::createFromName(locale_str), status); in PHP_FUNCTION() 205 df->adoptCalendar(cal); in PHP_FUNCTION() 206 cal = NULL; in PHP_FUNCTION() 229 delete cal; in PHP_FUNCTION()
|
/PHP-5.5/ext/calendar/ |
H A D | calendar.c | 293 long cal = -1; in PHP_FUNCTION() local 300 if (cal == -1) { in PHP_FUNCTION() 315 if (cal != -1 && (cal < 0 || cal >= CAL_NUM_CALS)) { in PHP_FUNCTION() 320 _php_cal_info(cal, &return_value); in PHP_FUNCTION() 329 long cal, month, year; in PHP_FUNCTION() local 337 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION() 373 long cal, month, day, year; in PHP_FUNCTION() local 379 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION() 392 long jd, cal; in PHP_FUNCTION() local 401 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION() [all …]
|