Home
last modified time | relevance | path

Searched refs:format (Results 751 – 775 of 804) sorted by last modified time

1...<<313233

/PHP-7.4/ext/date/tests/
H A Dbug54597.phpt9 echo $dateObject->format( 'Y' ), "\n";
11 echo $dateObject->format( 'Y' ), "\n";
13 echo $dateObject->format( 'Y' ), "\n";
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 Dbug55253.phpt15 echo 'Zone Type 3: ' . $date3->format('Y-m-d H:i:s T') . "\n";
16 echo 'Zone Type 2: ' . $date2->format('Y-m-d H:i:s T') . "\n";
18 echo $interval->format('Add %h hours %i minutes') . "\n";
22 echo 'Zone Type 3: ' . $date3->format('Y-m-d H:i:s T') . "\n";
23 echo 'Zone Type 2: ' . $date2->format('Y-m-d H:i:s T') . "\n";
29 echo $interval->format('Subtract %h hours %i minutes from expected') . "\n";
33 echo 'Zone Type 3: ' . $date3->format('Y-m-d H:i:s T') . "\n";
34 echo 'Zone Type 2: ' . $date2->format('Y-m-d H:i:s T') . "\n";
H A Dbug55407.phpt9 public static function createFromFormat($format, $time, \DateTimeZone $timezone = null) {
10 return new DateTime(parent::createFromFormat($format, $time, $timezone));
H A Dbug60236.phpt8 $ts = $t->format('U');
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 Dbug61642.phpt17 $header[] = $date->format('Y-m-d D');
31 $line[] = $date->format('Y-m-d D');
H A Dbug62561.phpt11 echo 'ts: '.$ts->format('Y-m-d H:i:s')."\n";
12 echo 'day from ts: '.$dayFromTs->format('Y-m-d H:i:s')."\n";
H A Dbug62896.phpt12 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
15 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
21 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
24 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
29 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
32 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
H A Dbug63391.phpt11 echo date_create($date)->format('Y-m-d D'), "\n";
H A Dbug63435.phpt2 Bug #63435 Datetime::format('u') sometimes wrong by 1 microsecond
9 $res = $datetime->format("u");
H A Dbug63740.phpt23 echo $dt->format( "D Y-m-d H:i" ), " → ";
27 echo $dtn->format( "D Y-m-d H:i" ), "\n";
H A Dbug64887.phpt29 echo $datetime->modify( $test )->format( 'Y-m-d H:i:s.u' ), "\n";
H A Dbug66836.phpt9 var_dump($dt->format('U') === $timestamp);
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 Dbug73837.phpt10 $key = "s" . $a->format( "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 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";

Completed in 94 milliseconds

1...<<313233