/PHP-8.4/ext/date/tests/ |
H A D | bug53437_var4.phpt | 9 $df = $dt->diff(new DateTime('2009-10-13')); 11 var_dump($df, 12 $df->y, 13 $df->m, 14 $df->d, 15 $df->h, 16 $df->i, 17 $df->s, 18 $df->f, 19 $df->invert, [all …]
|
/PHP-8.4/ext/intl/tests/ |
H A D | dateformat_get_set_timezone.phpt | 15 function d(IntlDateFormatter $df) { 17 echo $df->format($ts), "\n"; 19 $df->getTimeZoneID(), 20 $df->getTimeZone()->getID()); 25 d($df); 27 $df->setTimeZone(NULL); 28 d($df); 30 $df->setTimeZone('Europe/Madrid'); 31 d($df); 34 d($df); [all …]
|
H A D | dateformat_get_set_timezone_variant2.phpt | 15 function d(IntlDateFormatter $df) { 17 echo $df->format($ts), "\n"; 19 $df->getTimeZoneID(), 20 $df->getTimeZone()->getID()); 25 d($df); 27 $df->setTimeZone(NULL); 28 d($df); 30 $df->setTimeZone('Europe/Madrid'); 31 d($df); 34 d($df); [all …]
|
H A D | dateformat_get_set_timezone_variant3.phpt | 16 function d(IntlDateFormatter $df) { 18 echo $df->format($ts), "\n"; 20 $df->getTimeZoneID(), 21 $df->getTimeZone()->getID()); 26 d($df); 28 $df->setTimeZone(NULL); 29 d($df); 31 $df->setTimeZone('Europe/Madrid'); 32 d($df); 35 d($df); [all …]
|
H A D | dateformat_get_set_timezone_variant5.phpt | 15 function d(IntlDateFormatter $df) { 17 echo $df->format($ts), "\n"; 19 $df->getTimeZoneID(), 20 $df->getTimeZone()->getID()); 25 d($df); 27 $df->setTimeZone(NULL); 28 d($df); 30 $df->setTimeZone('Europe/Madrid'); 31 d($df); 34 d($df); [all …]
|
H A D | dateformat_get_set_timezone_variant4.phpt | 16 function d(IntlDateFormatter $df) { 18 echo $df->format($ts), "\n"; 20 $df->getTimeZoneID(), 21 $df->getTimeZone()->getID()); 26 d($df); 28 $df->setTimeZone(NULL); 29 d($df); 31 $df->setTimeZone('Europe/Madrid'); 32 d($df); 35 d($df); [all …]
|
H A D | dateformat_get_set_calendar.phpt | 15 function d(IntlDateFormatter $df) { 17 echo $df->format($ts), "\n"; 18 var_dump($df->getCalendar(), 19 $df->getCalendarObject()->getType(), 20 $df->getCalendarObject()->getTimeZone()->getId()); 24 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk'); 25 d($df); 29 $df->setCalendar(IntlDateFormatter::TRADITIONAL); 30 d($df); 34 $df->setCalendar($cal); [all …]
|
H A D | dateformat_get_set_calendar_variant2.phpt | 15 function d(IntlDateFormatter $df) { 17 echo $df->format($ts), "\n"; 18 var_dump($df->getCalendar(), 19 $df->getCalendarObject()->getType(), 20 $df->getCalendarObject()->getTimeZone()->getId()); 24 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk'); 25 d($df); 29 $df->setCalendar(IntlDateFormatter::TRADITIONAL); 30 d($df); 34 $df->setCalendar($cal); [all …]
|
H A D | dateformat_get_set_calendar_variant3.phpt | 16 function d(IntlDateFormatter $df) { 18 echo $df->format($ts), "\n"; 19 var_dump($df->getCalendar(), 20 $df->getCalendarObject()->getType(), 21 $df->getCalendarObject()->getTimeZone()->getId()); 25 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk'); 26 d($df); 30 $df->setCalendar(IntlDateFormatter::TRADITIONAL); 31 d($df); 35 $df->setCalendar($cal); [all …]
|
H A D | dateformat_get_set_calendar_variant_icu70.phpt | 17 function d(IntlDateFormatter $df) { 19 echo $df->format($ts), "\n"; 20 var_dump($df->getCalendar(), 21 $df->getCalendarObject()->getType(), 22 $df->getCalendarObject()->getTimeZone()->getId()); 26 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk'); 27 d($df); 31 $df->setCalendar(IntlDateFormatter::TRADITIONAL); 32 d($df); 36 $df->setCalendar($cal); [all …]
|
H A D | dateformat_timezone_arg_variations2.phpt | 15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL); 16 echo $df->format($ts), "\n"; 18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); 19 echo $df->format($ts), "\n"; 21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); 22 echo $df->format($ts), "\n"; 25 echo $df->format($ts), "\n"; 29 echo $df->format($ts), "\n"; 33 echo $df->format($ts), "\n"; 35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0); [all …]
|
H A D | dateformat_timezone_arg_variations4.phpt | 15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL); 16 echo $df->format($ts), "\n"; 18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); 19 echo $df->format($ts), "\n"; 21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); 22 echo $df->format($ts), "\n"; 25 echo $df->format($ts), "\n"; 29 echo $df->format($ts), "\n"; 33 echo $df->format($ts), "\n"; 35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0); [all …]
|
H A D | dateformat_timezone_arg_variations.phpt | 15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL); 16 echo $df->format($ts), "\n"; 18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); 19 echo $df->format($ts), "\n"; 21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); 22 echo $df->format($ts), "\n"; 25 echo $df->format($ts), "\n"; 29 echo $df->format($ts), "\n"; 33 echo $df->format($ts), "\n"; 35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0); [all …]
|
H A D | dateformat_get_set_calendar_variant4.phpt | 16 function d(IntlDateFormatter $df) { 18 echo $df->format($ts), "\n"; 19 var_dump($df->getCalendar(), 20 $df->getCalendarObject()->getType(), 21 $df->getCalendarObject()->getTimeZone()->getId()); 25 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk'); 26 d($df); 30 $df->setCalendar(IntlDateFormatter::TRADITIONAL); 31 d($df); 35 $df->setCalendar($cal); [all …]
|
H A D | dateformat_get_set_calendar_variant5.phpt | 17 function d(IntlDateFormatter $df) { 19 echo $df->format($ts), "\n"; 20 var_dump($df->getCalendar(), 21 $df->getCalendarObject()->getType(), 22 $df->getCalendarObject()->getTimeZone()->getId()); 26 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk'); 27 d($df); 31 $df->setCalendar(IntlDateFormatter::TRADITIONAL); 32 d($df); 36 $df->setCalendar($cal); [all …]
|
H A D | dateformat_create_cal_arg_variant2.phpt | 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 17 echo $df->format($ts), "\n"; 20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 21 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 38 echo $df->format($ts), "\n"; 40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0); [all …]
|
H A D | dateformat_create_cal_arg_variant3.phpt | 17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 18 echo $df->format($ts), "\n"; 21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 22 echo $df->format($ts), "\n"; 27 echo $df->format($ts), "\n"; 30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 31 echo $df->format($ts), "\n"; 35 echo $df->format($ts), "\n"; 39 echo $df->format($ts), "\n"; 41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0); [all …]
|
H A D | dateformat_create_cal_arg_variant4.phpt | 17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 18 echo $df->format($ts), "\n"; 21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 22 echo $df->format($ts), "\n"; 27 echo $df->format($ts), "\n"; 30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 31 echo $df->format($ts), "\n"; 35 echo $df->format($ts), "\n"; 39 echo $df->format($ts), "\n"; 41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0); [all …]
|
H A D | dateformat_create_cal_arg_variant5.phpt | 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 17 echo $df->format($ts), "\n"; 20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 21 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 38 echo $df->format($ts), "\n"; 40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0); [all …]
|
H A D | dateformat_timezone_arg_variations3.phpt | 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL); 17 echo $df->format($ts), "\n"; 19 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); 20 echo $df->format($ts), "\n"; 22 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); 23 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 36 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0); [all …]
|
H A D | dateformat_create_cal_arg.phpt | 16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 17 echo $df->format($ts), "\n"; 20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); 21 echo $df->format($ts), "\n"; 26 echo $df->format($ts), "\n"; 29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); 30 echo $df->format($ts), "\n"; 34 echo $df->format($ts), "\n"; 38 echo $df->format($ts), "\n"; 40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0); [all …]
|
H A D | dateformat_setTimeZone_error.phpt | 11 $df = new IntlDateFormatter(NULL, 0, 0); 13 var_dump($df->setTimeZone(array())); 14 var_dump($df->setTimeZone('non existing timezone'));
|
/PHP-8.4/ext/intl/dateformat/ |
H A D | dateformat_format_object.cpp | 75 DateFormat *df = NULL; in PHP_FUNCTION() local 193 df = new SimpleDateFormat( in PHP_FUNCTION() 206 df = DateFormat::createDateTimeInstance(dateStyle, timeStyle, in PHP_FUNCTION() 209 if (df == NULL) { /* according to ICU sources, this should never happen */ in PHP_FUNCTION() 219 df->adoptCalendar(cal); in PHP_FUNCTION() 221 df->adoptTimeZone(timeZone); in PHP_FUNCTION() 227 df->format(date, result); in PHP_FUNCTION() 242 delete df; in PHP_FUNCTION()
|
/PHP-8.4/ext/dom/tests/ |
H A D | gh16595.phpt | 12 $v7 = new DOMElement ( "L" , null , "df" ); 25 <jg xmlns:default="df"><IU/><default:L xmlns="df"/></jg>
|
/PHP-8.4/Zend/tests/ |
H A D | bug79668.phpt | 7 $df = get_defined_functions(true); 9 var_dump(in_array($funcname, $df['internal'], true));
|