Home
last modified time | relevance | path

Searched refs:format (Results 26 – 50 of 798) sorted by relevance

12345678910>>...32

/php-src/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type3-fa.phpt19 echo 'fa1 ' . $start->format($date_format) . " + $interval_spec = "
20 . $start->add($interval)->format($date_format) . "\n";
25 echo 'fa2 ' . $start->format($date_format) . " + $interval_spec = "
26 . $start->add($interval)->format($date_format) . "\n";
32 . $start->add($interval)->format($date_format) . "\n";
37 echo 'fa3 ' . $start->format($date_format) . " + $interval_spec = "
38 . $start->add($interval)->format($date_format) . "\n";
43 echo 'fa4 ' . $start->format($date_format) . " + $interval_spec = "
44 . $start->add($interval)->format($date_format) . "\n";
50 . $start->add($interval)->format($date_format) . "\n";
[all …]
H A Dbug42910.phpt9 …print $foo->format(DateTime::ISO8601) . ' - ' . $foo->getTimezone()->getName() . ' - ' . $foo->fo…
10 …print $bar->format(DateTime::ISO8601) . ' - ' . $bar->getTimezone()->getName() . ' - ' . $bar->fo…
15 …print $foo->format(DateTime::ISO8601) . ' - ' . $foo->getTimezone()->getName() . ' - ' . $foo->fo…
16 …print $bar->format(DateTime::ISO8601) . ' - ' . $bar->getTimezone()->getName() . ' - ' . $bar->fo…
H A Dstrftime_variation8.phpt2 Test strftime() function : usage variation - Passing literal related strings to format argument.
11 $format = "%%";
13 echo "\n-- Testing strftime() function with a literal % character to format --\n";
14 var_dump( strftime($format) );
15 var_dump( strftime($format, $timestamp) );
21 -- Testing strftime() function with a literal % character to format --
23 Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in…
26 Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in…
H A Dgmdate_variation6.phpt2 Test gmdate() function : usage variation - Passing Month format options to format argument.
11 echo "\n-- Testing gmdate() function with full textual representation of month format --\n";
15 echo "\n-- Testing gmdate() function with numeric representation of month format --\n";
19 echo "\n-- Testing gmdate() function with short textual representation of month format --\n";
23 … Testing gmdate() function with numeric representation of month without leading zeros format --\n";
27 echo "\n-- Testing gmdate() function with number of days in a month format --\n";
35 -- Testing gmdate() function with full textual representation of month format --
39 -- Testing gmdate() function with numeric representation of month format --
43 -- Testing gmdate() function with short textual representation of month format --
47 -- Testing gmdate() function with numeric representation of month without leading zeros format --
[all …]
H A Ddate_period_microseconds.phpt10 echo "from " . $start->format('Y-m-d H:i:s.u') . " to " . $end->format('Y-m-d H:i:s.u') . " (exclus…
12 echo $day->format('Y-m-d H:i:s.u') . "\n";
15 echo "from " . $start->format('Y-m-d H:i:s.u') . " to " . $end->format('Y-m-d H:i:s.u') . " (inclus…
17 echo $day->format('Y-m-d H:i:s.u') . "\n";
21 echo "from " . $start->format('Y-m-d H:i:s.u') . " to " . $end->format('Y-m-d H:i:s.u') . " (exclus…
23 echo $day->format('Y-m-d H:i:s.u') . "\n";
27 echo "from " . $start->format('Y-m-d H:i:s.u') . " to " . $end->format('Y-m-d H:i:s.u') . " (inclus…
29 echo $day->format('Y-m-d H:i:s.u') . "\n";
H A Ddate_diff.phpt22 // echo $dates[$i]->format( "Y-m-d\n" );
28 $dates[$i]->format( 'Y-m-d' ),
29 $dates[$j]->format( 'Y-m-d' ),
30 $diff->format( '%a' ),
31 $diff->format( '%y-%m-%d' )
36 $int = new DateInterval( $diff->format( 'P%yY%mM%dD' ) );
48 $dates[$i]->format( 'Y-m-d' ), " + ",
49 $int->format( '%y-%m-%d' ), " = ",
50 $current->format( 'Y-m-d' ), " (",
51 $dates[$j]->format( 'Y-m-d' ), ")\n";
H A Dgmdate_variation11.phpt2 Test gmdate() function : usage variation - Passing Full Date/Time format options to format argument.
11 echo "\n-- Testing gmdate() function with ISO 8601 date format --\n";
15 echo "\n-- Testing gmdate() function with RFC 2822 date format --\n";
19 echo "\n-- Testing gmdate() function with seconds since Unix Epoch format --\n";
27 -- Testing gmdate() function with ISO 8601 date format --
31 -- Testing gmdate() function with RFC 2822 date format --
35 -- Testing gmdate() function with seconds since Unix Epoch format --
H A Dgmdate_variation9.phpt2 Test gmdate() function : usage variation - Passing Time format options to format argument.
16 '12-hour format without leading zeros' => 'g',
17 '24-hour format without leading zeros' => 'G',
18 '12-hour format with leading zeros' => 'h',
19 '24-hour format with leading zeros' => 'H',
47 --12-hour format without leading zeros--
51 --24-hour format without leading zeros--
55 --12-hour format with leading zeros--
59 --24-hour format with leading zeros--
/php-src/ext/standard/tests/strings/
H A Dsscanf_basic1.phpt2 Test sscanf() function : basic functionality - string format
9 echo "*** Testing sscanf() : basic functionality - using string format ***\n";
12 $format = "Part: %s Serial Number: %s Stock: %s";
15 // extract details using short format
16 list($part, $number, $stock) = sscanf($str, $format);
20 // extract details using long format
21 $res = sscanf($str, $format, $part, $number, $stock);
26 *** Testing sscanf() : basic functionality - using string format ***
H A Dsscanf_basic2.phpt2 Test sscanf() function : basic functionality - integer format
9 echo "*** Testing sscanf() : basic functionality - using integer format ***\n";
12 $format = "Part: %s Serial Number: %d Stock: %d";
15 // extract details using short format
16 list($part, $number, $stock) = sscanf($str, $format);
20 // extract details using long format
21 $res = sscanf($str, $format, $part, $number, $stock);
26 *** Testing sscanf() : basic functionality - using integer format ***
H A Dsscanf_basic3.phpt2 Test sscanf() function : basic functionality - float format
6 echo "*** Testing sscanf() : basic functionality -- using float format ***\n";
9 $format = "Part: %s Length: %f Width: %f Depth: %f";
12 // extract details using short format
13 list($part, $length, $width, $depth) = sscanf($str, $format);
17 // extract details using long format
18 $res = sscanf($str, $format, $part, $length, $width, $depth);
23 *** Testing sscanf() : basic functionality -- using float format ***
H A Dsscanf_basic4.phpt2 Test sscanf() function : basic functionality - char format
6 echo "*** Testing sscanf() : basic functionality - using char format ***\n";
9 $format = "%c = %c + %c - %c";
12 // extract details using short format
13 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format);
17 // extract details using long format
18 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4);
23 *** Testing sscanf() : basic functionality - using char format ***
H A Dsscanf_basic7.phpt2 Test sscanf() function : basic functionality - octal format
6 echo "*** Testing sscanf() : basic functionality - using octal format ***\n";
9 $format = "%o %o %o %o %o %o";
12 // extract details using short format
13 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
17 // extract details using long format
18 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
23 *** Testing sscanf() : basic functionality - using octal format ***
H A Dsprintf_variation52.phpt2 Test sprintf() function : usage variations - typical format strings
11 echo"\n-- Testing for '%%%.2f' as the format parameter --\n";
14 echo"\n-- Testing for '%%' as the format parameter --\n";
27 echo"\n-- Testing for '%X' as the format parameter --\n";
30 echo"\n-- Testing for multiple format parameters --\n";
39 *** Testing sprintf() : with typical format strings ***
41 -- Testing for '%%%.2f' as the format parameter --
44 -- Testing for '%%' as the format parameter --
53 Unknown format specifier "-"
55 -- Testing for '%X' as the format parameter --
[all …]
H A Dsprintf_basic2.phpt2 Test sprintf() function : basic functionality - integer format
5 echo "*** Testing sprintf() : basic functionality - using integer format ***\n";
9 $format = "format";
18 var_dump( sprintf($format) );
32 *** Testing sprintf() : basic functionality - using integer format ***
33 string(6) "format"
H A Dsprintf_basic4.phpt2 Test sprintf() function : basic functionality - bool format
5 echo "*** Testing sprintf() : basic functionality - using bool format ***\n";
9 $format = "format";
18 var_dump( sprintf($format) );
32 *** Testing sprintf() : basic functionality - using bool format ***
33 string(6) "format"
H A Dsprintf_basic5.phpt2 Test sprintf() function : basic functionality - char format
5 echo "*** Testing sprintf() : basic functionality - using char format ***\n";
9 $format = "format";
18 var_dump( sprintf($format) );
32 *** Testing sprintf() : basic functionality - using char format ***
33 string(6) "format"
H A Dsprintf_basic6.phpt2 Test sprintf() function : basic functionality - exponential format
5 echo "*** Testing sprintf() : basic functionality - using exponential format ***\n";
8 $format = "format";
17 var_dump( sprintf($format) );
31 *** Testing sprintf() : basic functionality - using exponential format ***
32 string(6) "format"
H A Dvsprintf_basic2.phpt2 Test vsprintf() function : basic functionality - integer format
6 * Testing vsprintf() : basic functionality - using integer format
9 echo "*** Testing vsprintf() : basic functionality - using integer format ***\n";
12 $format = "format";
27 *** Testing vsprintf() : basic functionality - using integer format ***
H A Dsprintf_basic9.phpt2 Test sprintf() function : basic functionality - hexadecimal format
5 echo "*** Testing sprintf() : basic functionality - using hexadecimal format ***\n";
9 // Initialising different format strings
10 $format = "format";
24 var_dump( sprintf($format) );
41 *** Testing sprintf() : basic functionality - using hexadecimal format ***
42 string(6) "format"
H A Dsscanf_basic6.phpt2 Test sscanf() function : basic functionality - unsigned format
12 echo "*** Testing sscanf() : basic functionality - using unsigned format ***\n";
15 $format = "%u %u %u %u %u %u";
18 // extract details using short format
19 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
23 // extract details using long format
24 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
29 *** Testing sscanf() : basic functionality - using unsigned format ***
H A Dsprintf_basic1.phpt2 Test sprintf() function : basic functionality - string format
5 echo "*** Testing sprintf() : basic functionality - using string format ***\n";
8 $format = "format";
17 var_dump( sprintf($format) );
31 *** Testing sprintf() : basic functionality - using string format ***
32 string(6) "format"
H A Dsprintf_basic7.phpt2 Test sprintf() function : basic functionality - unsigned format
11 echo "*** Testing sprintf() : basic functionality - using unsigned format ***\n";
15 $format = "format";
24 var_dump( sprintf($format) );
38 *** Testing sprintf() : basic functionality - using unsigned format ***
39 string(6) "format"
/php-src/ext/opcache/
H A Dzend_accelerator_debug.c31 static void zend_accel_error_va_args(int type, const char *format, va_list args) in zend_accel_error_va_args() argument
79 vfprintf(fLog, format, args); in zend_accel_error_va_args()
99 void zend_accel_error(int type, const char *format, ...) in zend_accel_error() argument
102 va_start(args, format); in zend_accel_error()
103 zend_accel_error_va_args(type, format, args); in zend_accel_error()
107 ZEND_NORETURN void zend_accel_error_noreturn(int type, const char *format, ...) in zend_accel_error_noreturn() argument
110 va_start(args, format); in zend_accel_error_noreturn()
112 zend_accel_error_va_args(type, format, args); in zend_accel_error_noreturn()
/php-src/ext/intl/tests/
H A Dgh12020.phpt8 var_dump(\MessageFormatter::formatMessage('en', 'some message with {invalid format}', []), intl_get…
9 var_dump(\MessageFormatter::formatMessage('en', 'some {wrong.format}', []), intl_get_error_message(…
11 var_dump(msgfmt_format_message('en', 'some message with {invalid format}', []), intl_get_error_mess…
12 var_dump(msgfmt_format_message('en', 'some {wrong.format}', []), intl_get_error_message());
16 …parse error at offset 19, after " message with {", before or at "invalid format}"): U_PATTERN_SYNT…
18 …ntax error (parse error at offset 6, after "some {", before or at "wrong.format}"): U_PATTERN_SYNT…
20 …parse error at offset 19, after " message with {", before or at "invalid format}"): U_PATTERN_SYNT…
22 …ntax error (parse error at offset 6, after "some {", before or at "wrong.format}"): U_PATTERN_SYNT…

Completed in 26 milliseconds

12345678910>>...32