Searched refs:format (Results 751 – 775 of 804) sorted by last modified time
1...<<313233
/PHP-7.4/ext/date/tests/ |
H A D | bug54597.phpt | 9 echo $dateObject->format( 'Y' ), "\n"; 11 echo $dateObject->format( 'Y' ), "\n"; 13 echo $dateObject->format( 'Y' ), "\n";
|
H A D | bug54851.phpt | 9 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 D | bug55253.phpt | 15 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 D | bug55407.phpt | 9 public static function createFromFormat($format, $time, \DateTimeZone $timezone = null) { 10 return new DateTime(parent::createFromFormat($format, $time, $timezone));
|
H A D | bug60236.phpt | 8 $ts = $t->format('U');
|
H A D | bug60774.phpt | 2 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 D | bug61642.phpt | 17 $header[] = $date->format('Y-m-d D'); 31 $line[] = $date->format('Y-m-d D');
|
H A D | bug62561.phpt | 11 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 D | bug62896.phpt | 12 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 D | bug63391.phpt | 11 echo date_create($date)->format('Y-m-d D'), "\n";
|
H A D | bug63435.phpt | 2 Bug #63435 Datetime::format('u') sometimes wrong by 1 microsecond 9 $res = $datetime->format("u");
|
H A D | bug63740.phpt | 23 echo $dt->format( "D Y-m-d H:i" ), " → "; 27 echo $dtn->format( "D Y-m-d H:i" ), "\n";
|
H A D | bug64887.phpt | 29 echo $datetime->modify( $test )->format( 'Y-m-d H:i:s.u' ), "\n";
|
H A D | bug66836.phpt | 9 var_dump($dt->format('U') === $timestamp);
|
H A D | bug69089.phpt | 2 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 D | bug71889.phpt | 2 Bug #71889 (DateInterval::format segfault on '%' input) 8 var_dump($di->format("%"));
|
H A D | bug72719.phpt | 2 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 D | bug73294.phpt | 12 $result = $dt->format('Y-m-d H:i:s');
|
H A D | bug73426.phpt | 2 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 D | bug73837.phpt | 10 $key = "s" . $a->format( "u" );
|
H A D | bug73858.phpt | 7 to see if it's the format string which is parsed in correctly or if it's the DateTime
|
H A D | bug73942.phpt | 8 $dateFormat = $date->format('Y-m-d');
|
H A D | bug74080.phpt | 2 Bug #74080 Provide an RFC7231 date time format
|
H A D | bug74639.phpt | 22 if ($interval->format('Y-m-d H:i:s') != $clonedInterval->format('Y-m-d H:i:s')) {
|
H A D | bug74652.phpt | 17 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