Home
last modified time | relevance | path

Searched refs:format (Results 151 – 175 of 771) sorted by path

12345678910>>...31

/php-src/ext/date/tests/
H A Dbug66019.phpt2 Bug #66019 (DateTime object does not support short ISO 8601 time format - YYYY-MM-DDTHH)
7 echo $dateObject->format( 'j F Y H:i' );
H A Dbug66836.phpt9 var_dump($dt->format('U') === $timestamp);
H A Dbug67118.phpt9 public function __construct($time = 'now', $tz = NULL, $format = NULL)
17 echo "Bad date" . $this->format("Y") . "\n";
28 #0 %s(%d): DateTime->format('Y')
H A Dbug67253.phpt38 string(43) "Not enough data available to satisfy format"
H A Dbug68503.phpt6 echo date_diff(new DateTime("2015-02-01"), new DateTime("2015-05-01"))->format( '%yY %mM %dD' ), "\…
8 echo date_diff(new DateTime("2015-02-01"), new DateTime("2015-05-01"))->format( '%yY %mM %dD' ), "\…
H A Dbug68549-dst-transition-DateTime-setTimestamp.phpt136 …printf("%s %d -> %d %s\n", $timezone, $timestamp, $dt->getTimestamp(), $dt->format(DateTimeInterfa…
H A Dbug68549-dst-transition-DateTime-setTimezone.phpt136 …printf("%s %d -> %d %s\n", $timezone, $timestamp, $dt->getTimestamp(), $dt->format(DateTimeInterfa…
H A Dbug69089.phpt2 Bug #69089 (Add support for RFC3339 extended to DateTime::format)
11 var_dump($date->format(DateTime::RFC3339_EXTENDED));
12 var_dump($date->format('u'));
13 var_dump($date->format('v'));
H A Dbug71889.phpt2 Bug #71889 (DateInterval::format segfault on '%' input)
8 var_dump($di->format("%"));
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 Dbug73294.phpt12 $result = $dt->format('Y-m-d H:i:s');
H A Dbug73426.phpt2 Bug #73426 (createFromFormat with 'z' format char results in incorrect time)
8 $format = 'Y H:i:s z';
9 var_dump(DateTime::createFromFormat($format, $date));
12 $format = 'z H:i:s Y';
13 var_dump(DateTime::createFromFormat($format, $date));
H A Dbug73460-001.phpt8 echo $date->format('Y/m/d H:i e T'), "\n";
H A Dbug73460-002.phpt15 echo $end->format('Y-m-d H:i T') . PHP_EOL;
28 echo $start->format('Y-m-d H:i T') . PHP_EOL;
H A Dbug73837.phpt14 var_dump($prev_dt->format("Y-m-d H:i:s.u"));
15 var_dump($dt->format("Y-m-d H:i:s.u"));
H A Dbug73858.phpt7 to see if it's the format string which is parsed in correctly or if it's the DateTime
H A Dbug73942.phpt8 $dateFormat = $date->format('Y-m-d');
H A Dbug74080.phpt2 Bug #74080 Provide an RFC7231 date time format
H A Dbug74173.phpt8 echo $prg->format('c') . "\n";
10 echo $prg->format('c') . "\n";
H A Dbug74639.phpt22 if ($interval->format('Y-m-d H:i:s') != $clonedInterval->format('Y-m-d H:i:s')) {
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 Dbug74671.phpt10 var_dump($dt->format('c'));
H A Dbug75035.phpt19 $original = $d->format('Y-m-d H:i:s');
20 $serializedUnserialized = is_string($u) ? $u : $u->format('Y-m-d H:i:s');
H A Dbug75167.phpt15 echo $date->format('c') . "\n";
16 echo $newDate->format('c');
H A Dbug75577.phpt2 Test for bug #75577: DateTime::createFromFormat does not accept 'v' format specifier
8 var_dump($s = $d->format(DateTime::RFC3339_EXTENDED));

Completed in 29 milliseconds

12345678910>>...31