Home
last modified time | relevance | path

Searched refs:format (Results 126 – 150 of 768) sorted by relevance

12345678910>>...31

/php-src/ext/standard/tests/strings/
H A Dvfprintf_basic1.phpt2 Test vfprintf() function : basic functionality - string format
5 echo "*** Testing vfprintf() : basic functionality - using string format ***\n";
8 $format = "format";
36 *** Testing vfprintf() : basic functionality - using string format ***
H A Dvprintf_basic3.phpt2 Test vprintf() function : basic functionality - float format
5 echo "*** Testing vprintf() : basic functionality - using float format ***\n";
9 $format = "format";
47 *** Testing vprintf() : basic functionality - using float format ***
H A Dstr_word_count1.phpt24 str_word_count(): Argument #2 ($format) must be a valid format value
27 str_word_count(): Argument #2 ($format) must be a valid format value
H A Dvprintf_variation19.phpt2 Test vprintf() function : usage variations - with whitespaces in format strings
9 echo "*** Testing vprintf() : with white spaces in format strings ***\n";
11 // initializing the format array
43 foreach($formats as $format) {
45 $result = vprintf($format, $args_array[$counter-1]);
53 *** Testing vprintf() : with white spaces in format strings ***
H A Dvprintf_variation19_64bit.phpt2 Test vprintf() function : usage variations - with whitespaces in format strings
9 echo "*** Testing vprintf() : with white spaces in format strings ***\n";
11 // initializing the format array
43 foreach($formats as $format) {
45 $result = vprintf($format, $args_array[$counter-1]);
53 *** Testing vprintf() : with white spaces in format strings ***
H A Dvfprintf_basic3.phpt2 Test vfprintf() function : basic functionality - float format
5 echo "*** Testing vfprintf() : basic functionality - using float format ***\n";
9 $format = "format";
50 *** Testing vfprintf() : basic functionality - using float format ***
/php-src/ext/date/tests/
H A Dgmstrftime_variation17.phpt12 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
13 $format = "%e";
14 var_dump( gmstrftime($format) );
15 var_dump( gmstrftime($format, $timestamp) );
21 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
H A Dstrftime_variation17.phpt12 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n";
13 $format = "%e";
14 var_dump( strftime($format) );
15 var_dump( strftime($format, $timestamp) );
20 -- Testing strftime() function with Day of the month as decimal single digit format --
H A Dbug45543.phpt16 echo $d1->format(DATE_ISO8601), PHP_EOL;
17 echo $d2->format(DATE_ISO8601), PHP_EOL;
20 echo $d1->format(DATE_ISO8601), PHP_EOL;
21 echo $d2->format(DATE_ISO8601), PHP_EOL;
H A Ddate_interval_bad_format_leak.phpt2 DateInterval with bad format should not leak period
38 DateMalformedIntervalStringException: Unknown or bad format (P3"D)
41 DateMalformedPeriodStringException: Unknown or bad format (P3"D)
42 DateMalformedPeriodStringException: Unknown or bad format (P3"D)
45 DateMalformedPeriodStringException: Unknown or bad format (2008-03-01T12:00:00Z1)
46 DateMalformedPeriodStringException: Unknown or bad format (2008-03-01T12:00:00Z1)
H A Dbug43003.phpt8 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
11 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
14 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
17 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
20 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
H A Dforward-transition-construction.phpt8 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
11 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
14 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
17 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
20 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
H A Dgmstrftime_variation12.phpt18 echo "\n-- Testing gmstrftime() function with Abbreviated month name format %h --\n";
19 $format = "%h";
20 var_dump( gmstrftime($format) );
21 var_dump( gmstrftime($format, $timestamp) );
27 -- Testing gmstrftime() function with Abbreviated month name format %h --
H A Dstrftime_variation12.phpt18 echo "\n-- Testing strftime() function with Abbreviated month name format %h --\n";
19 $format = "%h";
20 var_dump( strftime($format) );
21 var_dump( strftime($format, $timestamp) );
27 -- Testing strftime() function with Abbreviated month name format %h --
H A Dbug46268.phpt8 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
11 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
14 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
18 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
H A Dbug48097.phpt9 echo $d->format( DATE_ISO8601 ), "\n";
10 echo $d->format( 'U' ), "\n\n";
14 echo $d->format( DATE_ISO8601 ), "\n\n";
15 echo $d->format( 'U' ), "\n\n";
H A Dbug52668.phpt11 echo $dt->format('r') . "\n"; // Sun, 12 Dec 2010 00:00:00 +0100
13 echo $start->format('r'), "\n";
15 echo $dt->format('r') . "\n"; // Sun, 12 Dec 2010 00:00:00 +0100
17 echo $start->format('r'), "\n\n";
H A Dgmstrftime_variation6.phpt2 Test gmstrftime() function : usage variation - Passing time related format strings to format argume…
14 'Hour as decimal by 24-hour format' => "%H",
15 'Hour as decimal by 12-hour format' => "%I",
17 'AM/PM format for a time' => "%p",
33 --Hour as decimal by 24-hour format--
41 --Hour as decimal by 12-hour format--
57 --AM/PM format for a time--
H A Dstrftime_variation6.phpt2 Test strftime() function : usage variation - Passing time related format strings to format argument.
15 'Hour as decimal by 24-hour format' => "%H",
16 'Hour as decimal by 12-hour format' => "%I",
18 'AM/PM format for a time' => "%p",
34 --Hour as decimal by 24-hour format--
42 --Hour as decimal by 12-hour format--
58 --AM/PM format for a time--
H A Dbug41599.phpt8 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
12 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
16 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
20 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
/php-src/ext/intl/tests/
H A Ddateformat_timezone_arg_variations.phpt16 echo $df->format($ts), "\n";
19 echo $df->format($ts), "\n";
22 echo $df->format($ts), "\n";
25 echo $df->format($ts), "\n";
29 echo $df->format($ts), "\n";
33 echo $df->format($ts), "\n";
36 echo $df->format($ts), "\n";
H A Ddateformat_timezone_arg_variations2.phpt16 echo $df->format($ts), "\n";
19 echo $df->format($ts), "\n";
22 echo $df->format($ts), "\n";
25 echo $df->format($ts), "\n";
29 echo $df->format($ts), "\n";
33 echo $df->format($ts), "\n";
36 echo $df->format($ts), "\n";
H A Ddateformat_timezone_arg_variations4.phpt16 echo $df->format($ts), "\n";
19 echo $df->format($ts), "\n";
22 echo $df->format($ts), "\n";
25 echo $df->format($ts), "\n";
29 echo $df->format($ts), "\n";
33 echo $df->format($ts), "\n";
36 echo $df->format($ts), "\n";
H A Dbug74298.phpt2 Bug #74298 (IntlDateFormatter->format() doesn't return microseconds/fractions)
7 var_dump((new \DateTime('2017-01-01 01:02:03.123456'))->format('Y-m-d\TH:i:s.u'));
16 ))->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
25 )->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
H A Dmsgfmt_format_datetime_icu72-1.phpt2 MessageFormatter::format(): DateTime accepted to format dates and times
23 var_dump($mf->format(array($dt)));
24 var_dump($mf->format(array($dti)));

Completed in 57 milliseconds

12345678910>>...31