Home
last modified time | relevance | path

Searched refs:format (Results 176 – 200 of 768) sorted by relevance

12345678910>>...31

/php-src/ext/date/tests/
H A Dexamine_diff.inc21 * @param string|DateTime $end_date the end date in YYYY-MM-DD format
23 * @param string|DateTime $start_date the start date in YYYY-MM-DD format
41 $start_date = $start->format('Y-m-d H:i:s T');
48 $end_date = $end->format('Y-m-d H:i:s T');
57 $result_spec = $result_interval->format('P%R%yY%mM%dDT%hH%iM%sS');
63 $result_days = $result_interval->format('%a');
69 $result_end_date = $start->format('Y-m-d H:i:s T');
74 $result_start_date = $end->format('Y-m-d H:i:s T');
H A Dbug60774.phpt2 Bug #60774 (DateInterval::format("%a") is always zero when an interval is created using the createF…
7 echo $i->format("%d"), "\n";
8 echo $i->format("%a"), "\n";
H A Dgh10447.phpt2 Bug GH-10447 ('p' format specifier does not yield 'Z' for 00:00)
6 echo $date->format('Y-m-d\TH:i:sp'), "\n";
9 echo $date->format('Y-m-d\TH:i:sp'), "\n";
H A DDateTime_construct-dst-overlap.phpt11 echo $d->format('P') . "\n";
16 echo $d->format('P') . "\n";
21 echo $d->format('P') . "\n";
26 echo $d->format('P') . "\n";
H A Dbug52290.phpt12 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
15 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
18 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
21 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
H A Dbug79396-forward-transition-settime.phpt8 echo $date->setTime(2, 0)->format('Y-m-d H:i:s T/e - U') . "\n";
11 echo $date->setTime(2, 30)->format('Y-m-d H:i:s T/e - U') . "\n";
14 echo $date->setTime(3, 0)->format('Y-m-d H:i:s T/e - U') . "\n";
17 echo $date->setTime(1, 59, 59)->format('Y-m-d H:i:s T/e - U') . "\n";
H A Dgh9891.phpt13 echo '$a: ', $a->format(DateTime::ATOM), "\n";
14 echo '$b: ', $b->format(DateTime::ATOM), "\n";
19 echo '$a: ', $a->format(DateTime::ATOM), "\n";
20 echo '$b: ', $b->format(DateTime::ATOM), "\n";
H A Dbug54597.phpt9 echo $dateObject->format( 'Y' ), "\n";
11 echo $dateObject->format( 'Y' ), "\n";
13 echo $dateObject->format( 'Y' ), "\n";
H A Dbug80913.phpt9 var_dump($date->format(DATE_ATOM));
10 var_dump($_30mbefore->format(DATE_ATOM));
11 var_dump($_30mafter->format(DATE_ATOM));
H A Dgmdate_basic.phpt9 $format = DATE_ISO8601;
13 var_dump( gmdate($format, $timestamp) );
16 var_dump( gmdate($format) );
H A DDatePeriod_no_advance_on_valid.phpt13 echo $item->format('Y-m-d') . "\n";
20 echo $item->format('Y-m-d') . "\n";
29 echo $item->format('Y-m-d') . "\n";
36 echo $item->format('Y-m-d') . "\n";
H A Didate_variation6.phpt2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi…
9 $format = 'y';
13 var_dump( idate($format, $timestamp) );
17 var_dump( idate($format, $timestamp) );
H A Dbug52454.phpt10 echo $endOfWeek->format('Y-m-d H:i:s')."\n";
11 echo $endOfWeek->format('U')."\n";
16 echo $endOfWeek->format('Y-m-d H:i:s')."\n";
H A DDateTime_modify_basic1.phpt14 echo "After modification 1: " . $datetime->format("D, d M Y") . "\n";
17 echo "After modification 2: " . $datetime->format("D, d M Y H:i:s") . "\n";
20 echo "After modification 3: " . $datetime->format("D, d M Y") . "\n";
23 echo "After modification 4: " . $datetime->format("D, d M Y") . "\n";
H A Dbug50055-001.phpt10 echo $da1->format( DateTime::ISO8601 ), "\n";
11 echo date_add($da1, $i)->format( DateTime::ISO8601 ), "\n";
18 echo $da2->format( DateTime::ISO8601 ), "\n";
19 echo date_add($da2, $i2)->format( DateTime::ISO8601 ), "\n";//works
/php-src/ext/standard/tests/image/
H A Dgetimagesize_tif_mm.phpt2 GetImageSize() for tiff format with big-endian (aka Motorola, aka MM) ordering
5 echo "*** Testing getimagesize() : tiff_mm format ***\n";
11 *** Testing getimagesize() : tiff_mm format ***
/php-src/ext/gd/tests/
H A Dbug73159.phpt20 printf("format: %d\n", $header['format']);
23 format: 4
/php-src/ext/standard/tests/strings/
H A Dsscanf_basic5.phpt2 Test sscanf() function : basic functionality - exponential format
6 echo "*** Testing sscanf() : basic functionality -using exponential format ***\n";
13 // extract details using short format
20 // extract details using long format
29 *** Testing sscanf() : basic functionality -using exponential format ***
H A Dvprintf_variation10.phpt5 /* Prototype : string vprintf(string format, array args)
12 * the '$format' and '$args' arguments of the function
25 // Arrays of non char values for the format defined in $format.
26 // Each sub array contains non char values which correspond to each format in $format
66 // looping to test vprintf() with different char formats from the above $format array
H A Dstr_word_count.phpt90 str_word_count(): Argument #2 ($format) must be a valid format value
91 str_word_count(): Argument #2 ($format) must be a valid format value
92 str_word_count(): Argument #2 ($format) must be a valid format value
93 str_word_count(): Argument #2 ($format) must be a valid format value
H A Dvprintf_variation6.phpt7 * the '$format' and '$args' arguments of the function
20 // Arrays of non float values for the format defined in $format.
21 // Each sub array contains non float values which correspond to each format in $format
54 // looping to test vprintf() with different float formats from the above $format array
/php-src/ext/intl/tests/
H A Dmsgfmt_setPattern_cache.phpt13 var_dump($mf->format(array(1.3, 1.3)));
14 var_dump($mf->format(array(1.3, 1.3)));
16 var_dump($mf->format(array(1.3, 1.3)));
H A Dmsgfmt_format_error2.phpt2 MessageFormatter::format() inconsistent types in named argument
14 var_dump($mf->format(array(7)));
17 Warning: MessageFormatter::format(): Inconsistent types declared for an argument in %s on line %d
H A Dmsgfmt_format_error3.phpt2 MessageFormatter::format() given negative arg key
14 var_dump($mf->format(array("foo" => 7, -1 => "bar")));
17 Warning: MessageFormatter::format(): Found negative or too large array key in %s on line %d
/php-src/ext/standard/
H A Ddatetime.c67 char *strptime(const char *s, const char *format, struct tm *tm);
75 char *format; in PHP_FUNCTION() local
82 Z_PARAM_STRING(format, format_length) in PHP_FUNCTION()
87 unparsed_part = strptime(ts, format, &parsed_time); in PHP_FUNCTION()

Completed in 26 milliseconds

12345678910>>...31