/PHP-7.4/ext/date/tests/ |
H A D | bug68669.phpt | 7 var_dump(DateTime::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null)); 8 var_dump(DateTimeImmutable::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null));
|
H A D | bug69336.phpt | 7 var_dump(date('d.m.Y',strtotime('last day of april'))); 8 var_dump(date('d.m.Y',strtotime('last tuesday of march 2015'))); 9 var_dump(date('d.m.Y',strtotime('last wednesday of march 2015'))); 10 var_dump(date('d.m.Y',strtotime('last wednesday of april 2015'))); 11 var_dump(date('d.m.Y',strtotime('last wednesday of march 2014'))); 12 var_dump(date('d.m.Y',strtotime('last wednesday of april 2014')));
|
H A D | bug69587.phpt | 9 var_dump(property_exists($interval, 'm'), isset($interval->m), empty($interval->m), empty($interval…
|
H A D | bug72096.phpt | 8 echo "Time:", gmdate('Y-m-d H:i:s = B', $unix), PHP_EOL; 9 echo "Time:", gmdate('Y-m-d H:i:s = B', $unix - 82 * 365 * 24 * 3600), PHP_EOL;
|
H A D | bug73091.phpt | 20 ["m"]=>
|
H A D | bug73294.phpt | 12 $result = $dt->format('Y-m-d H:i:s');
|
H A D | bug73858.phpt | 6 In the "verbose setup method" I'm trying setup the DateTime object myself
|
H A D | bug73942.phpt | 8 $dateFormat = $date->format('Y-m-d');
|
H A D | bug74057.phpt | 5 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sun 2017-01-01")))."\n"; 6 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Mon 2017-01-02")))."\n"; 7 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Tue 2017-01-03")))."\n"; 8 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Wed 2017-01-04")))."\n"; 9 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Thu 2017-01-05")))."\n"; 10 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Fri 2017-01-06")))."\n"; 11 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sat 2017-01-07")))."\n"; 12 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Sun 2017-01-08")))."\n"; 13 echo date("D Y-m-d", strtotime("saturday this week", strtotime("Mon 2017-01-09")))."\n";
|
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 | 20 echo $dt->format( 'Y-m-d H:i:s' ), "\n";
|
H A D | bug79015.phpt | 5 $payload = 'O:12:"DateInterval":16:{s:1:"y";i:1;s:1:"m";i:0;s:1:"d";i:4;s:1:"h";i:0;s:1:"i";i:0;s:1… 12 ["m"]=>
|
H A D | bug79396-forward-transition-settime.phpt | 8 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 D | date-lenient-create.phpt | 8 print_r( date_create_from_format( 'm/d/y', $date , $tz) ); 11 print_r( date_create_from_format( 'm/d/y+', $date , $tz)->setTime(0, 0) ); 14 print_r( date_create_from_format( '+m/d/y', $date , $tz)->setTime(0, 0) ); 17 print_r( date_create_from_format( 'm/d/y++', $date , $tz)->setTime(0, 0) ); 22 print_r( date_create_from_format( 'm/d/y+', $date , $tz)->setTime(0, 0) ); 25 print_r( date_create_from_format( '+m/d/y', $date , $tz)->setTime(0, 0) );
|
H A D | date-lenient.phpt | 6 print_r( date_parse_from_format( 'm/d/y', $date ) ); 7 print_r( date_parse_from_format( 'm/d/y+', $date ) ); 8 print_r( date_parse_from_format( '+m/d/y', $date ) ); 9 print_r( date_parse_from_format( 'm/d/y++', $date ) ); 12 print_r( date_parse_from_format( 'm/d/y+', $date ) ); 13 print_r( date_parse_from_format( '+m/d/y', $date ) );
|
H A D | date-parse-by-format001.phpt | 6 print_r( date_parse_from_format( '!m/d/y', $date ) ); 7 print_r( date_parse_from_format( '!m*d*y', $date ) );
|
H A D | date-set-timestamp.phpt | 7 echo $d->format( "Y-m-d H:i e\n" ); 11 echo $d->format( "Y-m-d H:i e\n" );
|
H A D | date_add_basic.phpt | 18 $format = 'Y-m-d H:i:s';
|
H A D | date_basic1.phpt | 18 var_dump( date("m.d.y", $timestamp) ); 21 var_dump( date('h-i-s, j-m-y, it is w Day', $timestamp) ); 24 var_dump( date('H:m:s \m \i\s\ \m\o\n\t\h', $timestamp) ); 38 string(19) "10:02:30 m is month"
|
H A D | date_create_from_format_basic2.phpt | 10 var_dump(date_create_from_format('Y-m-d', '2009---01')); // invalid date
|
H A D | date_diff.phpt | 22 // echo $dates[$i]->format( "Y-m-d\n" ); 28 $dates[$i]->format( 'Y-m-d' ), 29 $dates[$j]->format( 'Y-m-d' ), 31 $diff->format( '%y-%m-%d' ) 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";
|
H A D | date_diff1.phpt | 34 ["m"]=>
|
H A D | date_format_basic1.phpt | 18 var_dump( date_format($date, "m.d.y") ); 21 var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); 24 var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); 38 string(19) "22:07:41 m is month"
|
H A D | date_interval_create_from_date_string.phpt | 17 var_dump($i->m);
|
H A D | date_period-immutable.phpt | 14 echo $dt->format( "l Y-m-d\n" ); 15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 16 echo $dt->format( "l Y-m-d\n\n" ); 22 echo $dt->format( "l Y-m-d\n" ); 23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 24 echo $dt->format( "l Y-m-d\n\n" );
|