Home
last modified time | relevance | path

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

12345678910>>...33

/PHP-7.4/ext/date/tests/
H A DDateTime_setTime_basic1.phpt19 echo "Initial date: " . $datetime ->format(DATE_RFC2822) . "\n";
22 echo "After modification1 " . $datetime ->format(DATE_RFC2822) . "\n";
25 echo "After modification2 " . $datetime ->format(DATE_RFC2822) . "\n";
28 echo "After modification3 " . $datetime ->format(DATE_RFC2822) . "\n";
31 echo "After modification4 " . $datetime ->format(DATE_RFC2822) . "\n";
34 echo "After modification5 " . $datetime ->format(DATE_RFC2822) . "\n";
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 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 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 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 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 Dbug74652.phpt17 foreach ( $formats as $format )
19 $dt = new DateTimeImmutable( $format );
20 echo $dt->format( 'Y-m-d H:i:s' ), "\n";
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;
H A Dgmdate_basic.phpt5 /* Prototype : string gmdate(string format [, long timestamp])
15 $format = DATE_ISO8601;
19 var_dump( gmdate($format, $timestamp) );
22 var_dump( gmdate($format) );
H A Dbug49585.phpt8 var_dump($date->format('r'));
11 var_dump($date->format('r'));
12 var_dump($date->format('c'));
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 D005.phpt29 Warning: idate(): Unrecognized date format token. in %s on line %d
32 Warning: idate(): idate format is one char in %s on line %d
35 Warning: idate(): Unrecognized date format token. in %s on line %d
39 Warning: idate(): Unrecognized date format token. in %s on line %d
42 Warning: idate(): Unrecognized date format token. in %s on line %d
/PHP-7.4/ext/standard/tests/strings/
H A Dvfprintf_basic3.phpt2 Test vfprintf() function : basic functionality - float format
5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
10 echo "*** Testing vfprintf() : basic functionality - using float format ***\n";
14 $format = "format";
56 *** Testing vfprintf() : basic functionality - using float format ***
H A Dvprintf_variation19.phpt2 Test vprintf() function : usage variations - with whitespaces in format strings
9 /* Prototype : string vprintf(string $format , array $args)
14 echo "*** Testing vprintf() : with white spaces in format strings ***\n";
16 // initializing the format array
48 foreach($formats as $format) {
50 $result = vprintf($format, $args_array[$counter-1]);
59 *** 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 /* Prototype : string vprintf(string $format , array $args)
14 echo "*** Testing vprintf() : with white spaces in format strings ***\n";
16 // initializing the format array
48 foreach($formats as $format) {
50 $result = vprintf($format, $args_array[$counter-1]);
59 *** Testing vprintf() : with white spaces in format strings ***
H A Dvfprintf_variation7.phpt5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
12 * the '$format' and '$args' arguments of the function
45 // Arrays of string values for the format defined in $format.
46 // Each sub array contains string values which correspond to each format string in $format
63 // looping to test vfprintf() with different string formats from the above $format array
66 foreach($formats as $format) {
68 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dsscanf_basic8.phpt2 Test sscanf() function : basic functionality - hexadecimal format
6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
7 * Description: Parses input from a string according to a format
11 echo "*** Testing sscanf() : basic functionality - - using hexadecimal format ***\n";
18 // extract details using short format
25 // extract details using long format
34 *** Testing sscanf() : basic functionality - - using hexadecimal format ***
/PHP-7.4/ext/soap/
H A Dphp_soap.h201 #define soap_error0(severity, format) \ argument
202 php_error(severity, "SOAP-ERROR: " format)
204 #define soap_error1(severity, format, param1) \ argument
205 php_error(severity, "SOAP-ERROR: " format, param1)
207 #define soap_error2(severity, format, param1, param2) \ argument
208 php_error(severity, "SOAP-ERROR: " format, param1, param2)
210 #define soap_error3(severity, format, param1, param2, param3) \ argument
211 php_error(severity, "SOAP-ERROR: " format, param1, param2, param3)
/PHP-7.4/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_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.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 27 milliseconds

12345678910>>...33