Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 780) sorted by relevance

12345678910>>...32

/php-src/ext/dom/lexbor/lexbor/core/
H A Dprint.c29 va_start(va, format); in lexbor_printf_size()
44 begin = format; in lexbor_vprintf_size()
48 c = *format; in lexbor_vprintf_size()
51 c = format[1]; in lexbor_vprintf_size()
75 format++; in lexbor_vprintf_size()
82 format++; in lexbor_vprintf_size()
92 va_start(va, format); in lexbor_sprintf()
107 begin = format; in lexbor_vsprintf()
112 c = *format; in lexbor_vsprintf()
149 format++; in lexbor_vsprintf()
[all …]
/php-src/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type1.phpt17 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
22 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
27 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
32 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
37 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
42 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
47 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
147 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
152 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
157 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
[all …]
H A Dbug45554.phpt2 Bug #45554 (Inconsistent behavior of the u format char)
7 $format = "m-d-Y H:i:s.u T";
8 $d = date_create_from_format($format, "03-15-2005 12:22:29.000000 PST");
9 echo $d->format($format), "\n";
11 $d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
12 echo $d->format($format), "\n";
14 $d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
15 echo $d->format($format), "\n";
H A Drfc-datetime_and_daylight_saving_time-type2.phpt18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
149 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
154 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
159 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
[all …]
H A DDateInterval_format.phpt2 DateInterval::format(), except %a
18 echo $interval->format('Y=%Y') . "\n";
19 echo $interval->format('M=%M') . "\n";
20 echo $interval->format('D=%D') . "\n";
21 echo $interval->format('H=%H') . "\n";
22 echo $interval->format('I=%I') . "\n";
23 echo $interval->format('S=%S') . "\n";
24 echo $interval->format('R=%R') . "\n";
26 echo $interval->format('y=%y') . "\n";
27 echo $interval->format('m=%m') . "\n";
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-fd.phpt18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
19 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n";
23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
24 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
29 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
34 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
[all …]
H A DDateTime_format_basic2.phpt11 var_dump($date->format(DateTime::ATOM));
12 var_dump($date->format(DateTime::COOKIE));
13 var_dump($date->format(DateTime::ISO8601));
15 var_dump($date->format(DateTime::RFC822));
16 var_dump($date->format(DateTime::RFC850));
17 var_dump($date->format(DateTime::RFC1036));
18 var_dump($date->format(DateTime::RFC1123));
19 var_dump($date->format(DateTime::RFC7231));
20 var_dump($date->format(DateTime::RFC2822));
23 var_dump($date->format(DateTime::RSS));
[all …]
H A Dbug54851.phpt9 echo $date->format("r"), "\n";
10 echo $date2->format("r"), "\n";
11 var_dump($date->format("D") == $date2->format("D"));
16 echo $datePre->format("r"), "\n";
18 var_dump($datePre->format("Y-m-d") == $datePost->format("Y-m-d"));
24 echo $date1->format('r'), "\n";
25 echo $date2->format('r'), "\n";
26 var_dump($date1->format('D') == $date2->format('D'));
31 echo $date1->format('r'), "\n";
33 var_dump($date1->format('Y-m-d') == $date2->format('Y-m-d'));
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-bd1.phpt18 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
19 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
23 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
24 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
28 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
29 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
33 echo 'bd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
34 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
38 echo 'bd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
39 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
H A DDateTime_format_basic1.phpt2 Test DateTime::format() function : basic functionality
11 var_dump( $date->format( "F j, Y, g:i a") );
12 var_dump( $date->format( "m.d.y") );
13 var_dump( $date->format( "j, n, Y") );
14 var_dump( $date->format( "Ymd") );
15 var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') );
16 var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') );
17 var_dump( $date->format( "D M j G:i:s T Y") );
18 var_dump( $date->format( 'H:m:s \m \i\s\ \m\o\n\t\h') );
19 var_dump( $date->format( "H:i:s") );
[all …]
H A DDateTime_extends_basic3.phpt2 Test DateTime class inheritance : with user space format() method
8 echo "*** Testing new DateTime() : with user format() method ***\n";
12 public function format($format = "F j, Y, g:i:s a"): string
14 return parent::format($format);
19 echo $d->format() . "\n";
23 *** Testing new DateTime() : with user format() method ***
H A Drfc-datetime_and_daylight_saving_time-type3-ba.phpt20 . $start->add($interval)->format($date_format) . "\n";
26 . $start->add($interval)->format($date_format) . "\n";
32 . $start->add($interval)->format($date_format) . "\n";
38 . $start->add($interval)->format($date_format) . "\n";
44 . $start->add($interval)->format($date_format) . "\n";
50 . $start->add($interval)->format($date_format) . "\n";
56 . $start->add($interval)->format($date_format) . "\n";
62 . $start->add($interval)->format($date_format) . "\n";
68 . $start->add($interval)->format($date_format) . "\n";
74 . $start->add($interval)->format($date_format) . "\n";
[all …]
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--
36 Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in…
39 Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in…
42 --Hour as decimal by 12-hour format--
44 Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in…
47 Deprecated: Function strftime() is deprecated since 8.1, use IntlDateFormatter::format() instead in…
[all …]
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--
35 Deprecated: Function gmstrftime() is deprecated since 8.1, use IntlDateFormatter::format() instead …
38 Deprecated: Function gmstrftime() is deprecated since 8.1, use IntlDateFormatter::format() instead …
41 --Hour as decimal by 12-hour format--
43 Deprecated: Function gmstrftime() is deprecated since 8.1, use IntlDateFormatter::format() instead …
46 Deprecated: Function gmstrftime() is deprecated since 8.1, use IntlDateFormatter::format() instead …
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt27 echo 'bd0 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
28 . ' = ' . $start->diff($end)->format('P%dDT%hH%iM%sS') . "\n";
33 echo 'bd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
34 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
39 echo 'bd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
40 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
45 echo 'bd8a ' . $end->format($date_format) . ' - ' . $start->format($date_format)
46 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
51 echo 'bd8b ' . $end->format($date_format) . ' - ' . $start->format($date_format)
52 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
H A Dbug72719.phpt2 Bug #72719: Relative datetime format ignores weekday on sundays only
5 echo (new DateTimeImmutable('Monday next week 13:00'))->format('l'), "\n";
6 echo (new DateTimeImmutable('Tuesday next week 14:00'))->format('l'), "\n";
7 echo (new DateTimeImmutable('Wednesday next week 14:00'))->format('l'), "\n";
8 echo (new DateTimeImmutable('Thursday next week 15:00'))->format('l'), "\n";
9 echo (new DateTimeImmutable('Friday next week 16:00'))->format('l'), "\n";
10 echo (new DateTimeImmutable('Saturday next week 17:00'))->format('l'), "\n";
11 echo (new DateTimeImmutable('Sunday next week 18:00'))->format('l'), "\n";
H A Drfc-datetime_and_daylight_saving_time-type3-bs.phpt21 echo 'bs1 ' . $end->format($date_format) . " - $interval_spec = "
22 . $end->sub($interval)->format($date_format) . "\n";
28 . $end->sub($interval)->format($date_format) . "\n";
34 . $end->sub($interval)->format($date_format) . "\n";
40 . $end->sub($interval)->format($date_format) . "\n";
47 . $end->sub($interval)->format($date_format) . "\n";
54 . $end->sub($interval)->format($date_format) . "\n";
60 . $end->sub($interval)->format($date_format) . "\n";
67 . $end->sub($interval)->format($date_format) . "\n";
73 . $end->sub($interval)->format($date_format) . "\n";
[all …]
H A Dgmdate_variation10.phpt2 Test gmdate() function : usage variation - Passing Timezone format options to format argument.
11 echo "\n-- Testing gmdate() function with Timezone identifier format --\n";
19 echo "\n-- Testing gmdate() function with difference to GMT in hours format --\n";
27 echo "\n-- Testing gmdate() function with timezone abbreviation format --\n";
31 echo "\n-- Testing gmdate() function with timezone offset format --\n";
39 -- Testing gmdate() function with Timezone identifier format --
43 -- Testing gmdate() function with checking whether date is in daylight saving time format --
47 -- Testing gmdate() function with difference to GMT in hours format --
51 -- Testing gmdate() function with Difference to GMT in hours using colon as separator format --
55 -- Testing gmdate() function with timezone abbreviation format --
[all …]
H A Dgmdate_variation7.phpt2 Test gmdate() function : usage variation - Passing Year format options to format argument.
12 echo "\n-- Testing gmdate() function with checking non leap year using Leap Year format --\n";
15 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
19 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
23 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
27 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
35 -- Testing gmdate() function with checking non leap year using Leap Year format --
38 -- Testing gmdate() function with checking leap year using Leap Year format --
42 -- Testing gmdate() function with ISO-8601 year number format --
46 -- Testing gmdate() function with full numeric representation of year format --
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-fs.phpt19 echo 'fs1 ' . $end->format($date_format) . " - $interval_spec = "
20 . $end->sub($interval)->format($date_format) . "\n";
25 echo 'fs2 ' . $end->format($date_format) . " - $interval_spec = "
26 . $end->sub($interval)->format($date_format) . "\n";
31 echo 'fs3 ' . $end->format($date_format) . " - $interval_spec = "
32 . $end->sub($interval)->format($date_format) . "\n";
37 echo 'fs4 ' . $end->format($date_format) . " - $interval_spec = "
38 . $end->sub($interval)->format($date_format) . "\n";
44 . $end->sub($interval)->format($date_format) . "\n";
50 . $end->sub($interval)->format($date_format) . "\n";
[all …]
/php-src/ext/standard/tests/math/
H A Dbug25694.phpt8 echo "number format 0.045 = " . number_format(0.045, 2) . "\n\n";
10 echo "number format 0.055 = " . number_format(0.055, 2) . "\n\n";
12 echo "number format 5.045 = " . number_format(5.045, 2) . "\n\n";
14 echo "number format 5.055 = " . number_format(5.055, 2) . "\n\n";
16 echo "number format 3.025 = " . number_format(3.025, 2) . "\n\n";
22 number format 0.045 = 0.05
25 number format 0.055 = 0.06
28 number format 5.045 = 5.05
31 number format 5.055 = 5.06
34 number format 3.025 = 3.03
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_log.c117 char format[129]; in fpm_log_write() local
174 memset(format, '\0', sizeof(format)); /* reset format */ in fpm_log_write()
191 if (format[0] == '\0' || !strcasecmp(format, "total")) { in fpm_log_write()
208 format[0] = '\0'; in fpm_log_write()
217 if (format[0] == '\0' || !strcasecmp(format, "seconds")) { in fpm_log_write()
225 !strcasecmp(format, "miliseconds") || !strcasecmp(format, "mili") in fpm_log_write()
241 format[0] = '\0'; in fpm_log_write()
254 format[0] = '\0'; in fpm_log_write()
277 if (format[0] == '\0' || !strcasecmp(format, "bytes")) { in fpm_log_write()
298 format[0] = '\0'; in fpm_log_write()
[all …]
/php-src/ext/standard/
H A Dformatted_print.c454 format++; in php_formatted_print()
465 *format, format - Z_STRVAL_P(z_format))); in php_formatted_print()
479 *format, format - Z_STRVAL_P(z_format))); in php_formatted_print()
481 if (*format == ' ' || *format == '0') { in php_formatted_print()
509 format++; in php_formatted_print()
549 format++; in php_formatted_print()
597 format++; in php_formatted_print()
611 && *format != 'g' && *format != 'G' && *format != 'h' && *format != 'H') { in php_formatted_print()
710 format++; in php_formatted_print()
758 char *format; in PHP_FUNCTION() local
[all …]
H A Dscanf.c145 ch = format; in BuildCharSet()
148 ch = ++format; in BuildCharSet()
181 ch = format++; in BuildCharSet()
217 ch = format++; in BuildCharSet()
219 return format; in BuildCharSet()
332 ch = format++; in ValidateFormat()
338 ch = format++; in ValidateFormat()
401 value = ZEND_STRTOUL(format-1, &format, 10); in ValidateFormat()
685 ch = format++; in php_sscanf_internal()
710 width = ZEND_STRTOUL(format-1, &format, 10); in php_sscanf_internal()
[all …]
/php-src/ext/standard/tests/strings/
H A Dsprintf_variation1.phpt2 Test sprintf() function : usage variations - unexpected values for format argument
66 // loop through each element of the array for format
150 sprintf(): Argument #1 ($format) must be of type string, array given
151 sprintf(): Argument #1 ($format) must be of type string, array given
152 sprintf(): Argument #1 ($format) must be of type string, array given
155 sprintf(): Argument #1 ($format) must be of type string, array given
156 sprintf(): Argument #1 ($format) must be of type string, array given
157 sprintf(): Argument #1 ($format) must be of type string, array given
160 sprintf(): Argument #1 ($format) must be of type string, array given
161 sprintf(): Argument #1 ($format) must be of type string, array given
[all …]

Completed in 28 milliseconds

12345678910>>...32