Home
last modified time | relevance | path

Searched refs:format (Results 151 – 175 of 768) sorted by relevance

12345678910>>...31

/php-src/ext/date/tests/
H A Dbug74652.phpt17 foreach ( $formats as $format )
19 $dt = new DateTimeImmutable( $format );
20 echo $dt->format( 'Y-m-d H:i:s' ), "\n";
H A Dgmstrftime_variation18.phpt18 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
19 $format = "%e";
20 var_dump( gmstrftime($format) );
21 var_dump( gmstrftime($format, $timestamp) );
27 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
H A Dstrftime_variation18.phpt18 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n";
19 $format = "%e";
20 var_dump( strftime($format) );
21 var_dump( strftime($format, $timestamp) );
26 -- Testing strftime() function with Day of the month as decimal single digit format --
H A Dbug49059.phpt9 print "\$date1 at init: " . $date1->format("Y-m-d") . "\n";
10 print "\$date2 at init: " . $date2->format("Y-m-d") . "\n";
12 print "\$date1 after first diff: " . $date1->format("Y-m-d") . "\n";
15 print "\$date1 after sub: " . $date1->format("Y-m-d") . "\n";
18 $date1->format("Y-m-d") . "\n";
22 $date1->format("Y-m-d") . "\n";
H A Dbug62896.phpt12 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
15 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
21 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
24 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
29 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
32 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
H A Doo_002.phpt9 var_dump($d->format(DateTime::RFC822));
11 var_dump($c->format(DateTime::RFC822));
14 var_dump($d->format(DateTime::RFC822));
15 var_dump($c->format(DateTime::RFC822));
H A Dbug49585.phpt8 var_dump($date->format('r'));
11 var_dump($date->format('r'));
12 var_dump($date->format('c'));
/php-src/ext/phar/tests/
H A Dbug79082.phpt16 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $format => $ext) {
18 $phar = new PharData(__DIR__ . '/test79082.' . $ext, format: $format);
26 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $format => $ext) {
28 $phar = new PharData(__DIR__ . '/test79082-d.' . $ext, format: $format);
/php-src/ext/intl/tests/
H A Dmsgfmt_format_error5.phpt2 MessageFormatter::format() invalid date/time argument
16 var_dump($mf->format(array("foo" => new stdclass())));
19 Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCal…
21 Warning: MessageFormatter::format(): The argument for key 'foo' cannot be used as a date or time in…
H A Ddateformat_create_cal_arg.phpt17 echo $df->format($ts), "\n";
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
41 echo $df->format($ts), "\n";
H A Ddateformat_create_cal_arg_variant2.phpt17 echo $df->format($ts), "\n";
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
41 echo $df->format($ts), "\n";
H A Ddateformat_create_cal_arg_variant3.phpt18 echo $df->format($ts), "\n";
22 echo $df->format($ts), "\n";
27 echo $df->format($ts), "\n";
31 echo $df->format($ts), "\n";
35 echo $df->format($ts), "\n";
39 echo $df->format($ts), "\n";
42 echo $df->format($ts), "\n";
H A Ddateformat_create_cal_arg_variant4.phpt18 echo $df->format($ts), "\n";
22 echo $df->format($ts), "\n";
27 echo $df->format($ts), "\n";
31 echo $df->format($ts), "\n";
35 echo $df->format($ts), "\n";
39 echo $df->format($ts), "\n";
42 echo $df->format($ts), "\n";
H A Ddateformat_create_cal_arg_variant5.phpt17 echo $df->format($ts), "\n";
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
41 echo $df->format($ts), "\n";
H A Ddateformat_timezone_arg_variations3.phpt17 echo $df->format($ts), "\n";
20 echo $df->format($ts), "\n";
23 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
37 echo $df->format($ts), "\n";
H A Dmsgfmt_format_datetime.phpt2 MessageFormatter::format(): DateTime accepted to format dates and times
23 var_dump($mf->format(array($dt)));
24 var_dump($mf->format(array($dti)));
H A Dmsgfmt_format_mixed_params.phpt2 MessageFormatter::format(): mixed named and numeric parameters
13 var_dump($mf->format(array(2.3, "foo" => 1.3)));
14 var_dump($mf->format(array("foo" => 1.3, 0 => 2.3)));
H A Ddateformat_formatObject_error.phpt41 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: the date/time format type is inv…
44 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; if array, it must ha…
47 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; if array, it must ha…
50 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; the date format (fir…
53 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: bad format; the time format (sec…
56 Warning: IntlDateFormatter::formatObject(): datefmt_format_object: the format is empty in %s on lin…
/php-src/ext/date/
H A Dphp_date.stub.php104 function date(string $format, ?int $timestamp = null): string {} argument
106 function idate(string $format, ?int $timestamp = null): int|false {} argument
109 function gmdate(string $format, ?int $timestamp = null): string {} argument
125 function strftime(string $format, ?int $timestamp = null): string|false {} argument
131 function gmstrftime(string $format, ?int $timestamp = null): string|false {} argument
172 function date_parse_from_format(string $format, string $datetime): array {} argument
181 function date_format(DateTimeInterface $object, string $format): string {} argument
317 public function format(string $format): string; function
381 public function format(string $format): string {} argument
492 public function format(string $format): string {} function in DateTimeImmutable
[all …]
/php-src/ext/exif/tests/
H A Dbug72094.phpt14 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
16 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
18 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
20 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
22 Warning: exif_read_data(bug72094_1.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
24 Warning: exif_read_data(bug72094_1.jpg): Process tag(x8298=Copyright): Illegal format code 0x3030, …
38 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
40 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
42 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
44 Warning: exif_read_data(bug72094_3.jpg): Process tag(x3030=UndefinedTag): Illegal format code 0x303…
[all …]
/php-src/ext/standard/tests/image/
H A Dgetimagesize_xbm.phpt2 GetImageSize() for xbm format
5 echo "*** Testing getimagesize() : xbm format ***\n";
11 *** Testing getimagesize() : xbm format ***
H A Dgetimagesize_wbmp.phpt2 GetImageSize() for wbmp format
5 echo "*** Testing getimagesize() : wbmp format ***\n";
11 *** Testing getimagesize() : wbmp format ***
/php-src/main/
H A Dsnprintf.c282 if (format == 'F') { in php_conv_fp()
298 if (format == 'F') { in php_conv_fp()
338 if (format != 'F') { in php_conv_fp()
343 *s++ = format; /* either e or E */ in php_conv_fp()
1094 cc = format_converter(&od, format, ap); in strx_printv()
1107 va_start(ap, format); in ap_php_slprintf()
1108 cc = strx_printv(buf, len, format, ap); in ap_php_slprintf()
1134 va_start(ap, format); in ap_php_snprintf()
1135 cc = strx_printv(buf, len, format, ap); in ap_php_snprintf()
1177 va_start(ap, format); in ap_php_asprintf()
[all …]
/php-src/ext/standard/tests/strings/
H A Dprintf.phpt14 /* Various input arrays for different format types */
161 echo "\n Input Strings format variation array is:\n";
180 echo "\n Input format variation array is:\n";
593 Input Strings format variation array is:
625 Input format variation array is:
670 *** Output for '%%' as the format parameter ***
679 Unknown format specifier "-"
681 *** Output for '%F' as the format parameter ***
684 *** Output for '%X' as the format parameter ***
687 *** Output with no format parameter ***
[all …]
H A Dprintf_64bit.phpt14 /* Various input arrays for different format types */
161 echo "\n Input Strings format variation array is:\n";
180 echo "\n Input format variation array is:\n";
593 Input Strings format variation array is:
625 Input format variation array is:
670 *** Output for '%%' as the format parameter ***
679 Unknown format specifier "-"
681 *** Output for '%F' as the format parameter ***
684 *** Output for '%X' as the format parameter ***
687 *** Output with no format parameter ***
[all …]

Completed in 45 milliseconds

12345678910>>...31