Home
last modified time | relevance | path

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

12345678910>>...28

/PHP-5.3/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type1.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 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 Drfc-datetime_and_daylight_saving_time-type3.phpt20 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
25 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
30 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
35 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
40 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
45 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
50 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
161 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
166 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
171 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 DDateInterval_format.phpt2 DateInterval::format(), except %a
20 echo $interval->format('Y=%Y') . "\n";
21 echo $interval->format('M=%M') . "\n";
22 echo $interval->format('D=%D') . "\n";
23 echo $interval->format('H=%H') . "\n";
24 echo $interval->format('I=%I') . "\n";
25 echo $interval->format('S=%S') . "\n";
26 echo $interval->format('R=%R') . "\n";
28 echo $interval->format('y=%y') . "\n";
29 echo $interval->format('m=%m') . "\n";
[all …]
H A DDateTime_format_basic1.phpt2 Test DateTime::format() function : basic functionality
5 /* Prototype : public string DateTime::format ( string $format )
6 * Description: Returns date formatted according to given format
17 var_dump( $date->format( "F j, Y, g:i a") );
18 var_dump( $date->format( "m.d.y") );
19 var_dump( $date->format( "j, n, Y") );
20 var_dump( $date->format( "Ymd") );
21 var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') );
22 var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') );
23 var_dump( $date->format( "D M j G:i:s T Y") );
[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 DDateTime_format_basic2.phpt5 /* Prototype : public string DateTime::format ( string $format )
17 var_dump( $date->format( DateTime::ATOM) ) ;
18 var_dump( $date->format( DateTime::COOKIE) ) ;
19 var_dump( $date->format( DateTime::ISO8601) ) ;
20 var_dump( $date->format( DateTime::RFC822) ) ;
21 var_dump( $date->format( DateTime::RFC850) ) ;
22 var_dump( $date->format( DateTime::RFC1036) ) ;
23 var_dump( $date->format( DateTime::RFC1123) ) ;
25 var_dump( $date->format( DateTime::RFC3339) ) ;
26 var_dump( $date->format( DateTime::RSS) ) ;
[all …]
H A DDateTime_format_error.phpt2 Test DateTime::format() function : error conditions
5 /* Prototype : public string DateTime::format ( string $format )
6 * Description: Returns date formatted according to given format
17 echo "*** Testing DateTime::format() : error conditions ***\n";
20 var_dump( $date->format() );
23 $format = "F j, Y, g:i a";
25 var_dump( $date->format($format, $extra_arg) );
30 *** Testing DateTime::format() : error conditions ***
34 Warning: DateTime::format() expects exactly 1 parameter, 0 given in %s on line %d
39 Warning: DateTime::format() expects exactly 1 parameter, 2 given in %s on line %d
H A Dgmdate_variation10.phpt2 Test gmdate() function : usage variation - Passing Timezone format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
17 echo "\n-- Testing gmdate() function with Timezone identifier format --\n";
25 echo "\n-- Testing gmdate() function with difference to GMT in hours format --\n";
33 echo "\n-- Testing gmdate() function with timezone abbreviation format --\n";
37 echo "\n-- Testing gmdate() function with timezone offset format --\n";
46 -- Testing gmdate() function with Timezone identifier format --
50 -- Testing gmdate() function with checking whether date is in daylight saving time format --
54 -- Testing gmdate() function with difference to GMT in hours format --
62 -- Testing gmdate() function with timezone abbreviation format --
[all …]
H A Didate_variation1.phpt5 /* Prototype : int idate(string format [, int timestamp])
89 // loop through each element of the array for format
120 Warning: idate(): idate format is one char in %s on line %d
123 Warning: idate(): idate format is one char in %s on line %d
128 Warning: idate(): idate format is one char in %s on line %d
131 Warning: idate(): idate format is one char in %s on line %d
136 Warning: idate(): idate format is one char in %s on line %d
139 Warning: idate(): idate format is one char in %s on line %d
144 Warning: idate(): idate format is one char in %s on line %d
147 Warning: idate(): idate format is one char in %s on line %d
[all …]
H A DDateTime_extends_basic3.phpt8 echo "*** Testing new DateTime() : with user format() method ***\n";
12 public function format($format = "F j, Y, g:i:s a")
14 return parent::format($format);
19 echo $d->format() . "\n";
24 *** Testing new DateTime() : with user format() method ***
H A Dgmdate_variation7.phpt2 Test gmdate() function : usage variation - Passing Year format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
21 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
25 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
29 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
33 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
42 -- Testing gmdate() function with checking non leap year using Leap Year format --
45 -- Testing gmdate() function with checking leap year using Leap Year format --
49 -- Testing gmdate() function with ISO-8601 year number format --
53 -- Testing gmdate() function with full numeric representation of year format --
[all …]
H A Dgmdate_variation8.phpt2 Test gmdate() function : usage variation - Passing Year format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
21 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
25 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
29 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
33 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
42 -- Testing gmdate() function with checking non leap year using Leap Year format --
45 -- Testing gmdate() function with checking leap year using Leap Year format --
49 -- Testing gmdate() function with ISO-8601 year number format --
53 -- Testing gmdate() function with full numeric representation of year format --
[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 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";
/PHP-5.3/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-5.3/sapi/fpm/fpm/
H A Dfpm_log.c107 char format[129]; in fpm_log_write() local
160 memset(format, '\0', sizeof(format)); /* reset format */ in fpm_log_write()
177 if (format[0] == '\0' || !strcasecmp(format, "total")) { in fpm_log_write()
194 format[0] = '\0'; in fpm_log_write()
203 if (format[0] == '\0' || !strcasecmp(format, "seconds")) { in fpm_log_write()
224 format[0] = '\0'; in fpm_log_write()
237 format[0] = '\0'; in fpm_log_write()
260 if (format[0] == '\0' || !strcasecmp(format, "bytes")) { in fpm_log_write()
281 format[0] = '\0'; in fpm_log_write()
335 format[0] = '\0'; in fpm_log_write()
[all …]
/PHP-5.3/ext/standard/
H A Dscanf.c149 ch = format; in BuildCharSet()
152 ch = ++format; in BuildCharSet()
185 ch = format++; in BuildCharSet()
221 ch = format++; in BuildCharSet()
223 return format; in BuildCharSet()
337 ch = format++; in ValidateFormat()
343 ch = format++; in ValidateFormat()
406 value = strtoul(format-1, &format, 10); in ValidateFormat()
699 ch = format++; in php_sscanf_internal()
724 width = strtoul(format-1, &format, 10); in php_sscanf_internal()
[all …]
/PHP-5.3/ext/standard/tests/strings/
H A Dsscanf_basic2.phpt2 Test sscanf() function : basic functionality - integer format
5 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
6 * Description: Parses input from a string according to a format
14 echo "*** Testing sscanf() : basic functionality - using integer format ***\n";
17 $format = "Part: %s Serial Number: %d Stock: %d";
20 // extract details using short format
21 list($part, $number, $stock) = sscanf($str, $format);
25 // extract details using long format
26 $res = sscanf($str, $format, $part, $number, $stock);
32 *** Testing sscanf() : basic functionality - using integer format ***
H A Dsscanf_basic3.phpt2 Test sscanf() function : basic functionality - float 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 float format ***\n";
14 $format = "Part: %s Length: %f Width: %f Depth: %f";
17 // extract details using short format
18 list($part, $length, $width, $depth) = sscanf($str, $format);
22 // extract details using long format
23 $res = sscanf($str, $format, $part, $length, $width, $depth);
29 *** Testing sscanf() : basic functionality -- using float format ***
H A Dsscanf_basic1.phpt2 Test sscanf() function : basic functionality - string format
5 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
6 * Description: Parses input from a string according to a format
14 echo "*** Testing sscanf() : basic functionality - using string format ***\n";
17 $format = "Part: %s Serial Number: %s Stock: %s";
20 // extract details using short format
21 list($part, $number, $stock) = sscanf($str, $format);
25 // extract details using long format
26 $res = sscanf($str, $format, $part, $number, $stock);
32 *** Testing sscanf() : basic functionality - using string format ***
H A Dsscanf_basic4.phpt2 Test sscanf() function : basic functionality - char 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 char format ***\n";
14 $format = "%c = %c + %c - %c";
17 // extract details using short format
18 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format);
22 // extract details using long format
23 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4);
29 *** Testing sscanf() : basic functionality - using char format ***
H A Dsscanf_basic7.phpt2 Test sscanf() function : basic functionality - octal 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 octal format ***\n";
14 $format = "%o %o %o %o %o %o";
17 // extract details using short format
18 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
22 // extract details using long format
23 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
29 *** Testing sscanf() : basic functionality - using octal format ***
H A Dsscanf_basic6.phpt2 Test sscanf() function : basic functionality - unsigned format
12 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
13 * Description: Parses input from a string according to a format
17 echo "*** Testing sscanf() : basic functionality - using unsigned format ***\n";
20 $format = "%u %u %u %u %u %u";
23 // extract details using short format
24 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
28 // extract details using long format
29 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
35 *** Testing sscanf() : basic functionality - using unsigned format ***

Completed in 96 milliseconds

12345678910>>...28