/php-src/ext/date/tests/ |
H A D | examine_diff.inc | 21 * @param string|DateTime $end_date the end date in YYYY-MM-DD format 23 * @param string|DateTime $start_date the start date in YYYY-MM-DD format 41 $start_date = $start->format('Y-m-d H:i:s T'); 48 $end_date = $end->format('Y-m-d H:i:s T'); 57 $result_spec = $result_interval->format('P%R%yY%mM%dDT%hH%iM%sS'); 63 $result_days = $result_interval->format('%a'); 69 $result_end_date = $start->format('Y-m-d H:i:s T'); 74 $result_start_date = $end->format('Y-m-d H:i:s T');
|
H A D | bug60774.phpt | 2 Bug #60774 (DateInterval::format("%a") is always zero when an interval is created using the createF… 7 echo $i->format("%d"), "\n"; 8 echo $i->format("%a"), "\n";
|
H A D | gh10447.phpt | 2 Bug GH-10447 ('p' format specifier does not yield 'Z' for 00:00) 6 echo $date->format('Y-m-d\TH:i:sp'), "\n"; 9 echo $date->format('Y-m-d\TH:i:sp'), "\n";
|
H A D | DateTime_construct-dst-overlap.phpt | 11 echo $d->format('P') . "\n"; 16 echo $d->format('P') . "\n"; 21 echo $d->format('P') . "\n"; 26 echo $d->format('P') . "\n";
|
H A D | bug52290.phpt | 12 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U')); 15 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U')); 18 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U')); 21 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
|
H A D | bug79396-forward-transition-settime.phpt | 8 echo $date->setTime(2, 0)->format('Y-m-d H:i:s T/e - U') . "\n"; 11 echo $date->setTime(2, 30)->format('Y-m-d H:i:s T/e - U') . "\n"; 14 echo $date->setTime(3, 0)->format('Y-m-d H:i:s T/e - U') . "\n"; 17 echo $date->setTime(1, 59, 59)->format('Y-m-d H:i:s T/e - U') . "\n";
|
H A D | gh9891.phpt | 13 echo '$a: ', $a->format(DateTime::ATOM), "\n"; 14 echo '$b: ', $b->format(DateTime::ATOM), "\n"; 19 echo '$a: ', $a->format(DateTime::ATOM), "\n"; 20 echo '$b: ', $b->format(DateTime::ATOM), "\n";
|
H A D | bug54597.phpt | 9 echo $dateObject->format( 'Y' ), "\n"; 11 echo $dateObject->format( 'Y' ), "\n"; 13 echo $dateObject->format( 'Y' ), "\n";
|
H A D | bug80913.phpt | 9 var_dump($date->format(DATE_ATOM)); 10 var_dump($_30mbefore->format(DATE_ATOM)); 11 var_dump($_30mafter->format(DATE_ATOM));
|
H A D | gmdate_basic.phpt | 9 $format = DATE_ISO8601; 13 var_dump( gmdate($format, $timestamp) ); 16 var_dump( gmdate($format) );
|
H A D | DatePeriod_no_advance_on_valid.phpt | 13 echo $item->format('Y-m-d') . "\n"; 20 echo $item->format('Y-m-d') . "\n"; 29 echo $item->format('Y-m-d') . "\n"; 36 echo $item->format('Y-m-d') . "\n";
|
H A D | idate_variation6.phpt | 2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi… 9 $format = 'y'; 13 var_dump( idate($format, $timestamp) ); 17 var_dump( idate($format, $timestamp) );
|
H A D | bug52454.phpt | 10 echo $endOfWeek->format('Y-m-d H:i:s')."\n"; 11 echo $endOfWeek->format('U')."\n"; 16 echo $endOfWeek->format('Y-m-d H:i:s')."\n";
|
H A D | DateTime_modify_basic1.phpt | 14 echo "After modification 1: " . $datetime->format("D, d M Y") . "\n"; 17 echo "After modification 2: " . $datetime->format("D, d M Y H:i:s") . "\n"; 20 echo "After modification 3: " . $datetime->format("D, d M Y") . "\n"; 23 echo "After modification 4: " . $datetime->format("D, d M Y") . "\n";
|
H A D | bug50055-001.phpt | 10 echo $da1->format( DateTime::ISO8601 ), "\n"; 11 echo date_add($da1, $i)->format( DateTime::ISO8601 ), "\n"; 18 echo $da2->format( DateTime::ISO8601 ), "\n"; 19 echo date_add($da2, $i2)->format( DateTime::ISO8601 ), "\n";//works
|
/php-src/ext/standard/tests/image/ |
H A D | getimagesize_tif_mm.phpt | 2 GetImageSize() for tiff format with big-endian (aka Motorola, aka MM) ordering 5 echo "*** Testing getimagesize() : tiff_mm format ***\n"; 11 *** Testing getimagesize() : tiff_mm format ***
|
/php-src/ext/gd/tests/ |
H A D | bug73159.phpt | 20 printf("format: %d\n", $header['format']); 23 format: 4
|
/php-src/ext/standard/tests/strings/ |
H A D | sscanf_basic5.phpt | 2 Test sscanf() function : basic functionality - exponential format 6 echo "*** Testing sscanf() : basic functionality -using exponential format ***\n"; 13 // extract details using short format 20 // extract details using long format 29 *** Testing sscanf() : basic functionality -using exponential format ***
|
H A D | vprintf_variation10.phpt | 5 /* Prototype : string vprintf(string format, array args) 12 * the '$format' and '$args' arguments of the function 25 // Arrays of non char values for the format defined in $format. 26 // Each sub array contains non char values which correspond to each format in $format 66 // looping to test vprintf() with different char formats from the above $format array
|
H A D | str_word_count.phpt | 90 str_word_count(): Argument #2 ($format) must be a valid format value 91 str_word_count(): Argument #2 ($format) must be a valid format value 92 str_word_count(): Argument #2 ($format) must be a valid format value 93 str_word_count(): Argument #2 ($format) must be a valid format value
|
H A D | vprintf_variation6.phpt | 7 * the '$format' and '$args' arguments of the function 20 // Arrays of non float values for the format defined in $format. 21 // Each sub array contains non float values which correspond to each format in $format 54 // looping to test vprintf() with different float formats from the above $format array
|
/php-src/ext/intl/tests/ |
H A D | msgfmt_setPattern_cache.phpt | 13 var_dump($mf->format(array(1.3, 1.3))); 14 var_dump($mf->format(array(1.3, 1.3))); 16 var_dump($mf->format(array(1.3, 1.3)));
|
H A D | msgfmt_format_error2.phpt | 2 MessageFormatter::format() inconsistent types in named argument 14 var_dump($mf->format(array(7))); 17 Warning: MessageFormatter::format(): Inconsistent types declared for an argument in %s on line %d
|
H A D | msgfmt_format_error3.phpt | 2 MessageFormatter::format() given negative arg key 14 var_dump($mf->format(array("foo" => 7, -1 => "bar"))); 17 Warning: MessageFormatter::format(): Found negative or too large array key in %s on line %d
|
/php-src/ext/standard/ |
H A D | datetime.c | 67 char *strptime(const char *s, const char *format, struct tm *tm); 75 char *format; in PHP_FUNCTION() local 82 Z_PARAM_STRING(format, format_length) in PHP_FUNCTION() 87 unparsed_part = strptime(ts, format, &parsed_time); in PHP_FUNCTION()
|