/PHP-7.0/ext/date/tests/ |
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 9 $date_format = 'Y-m-d H:i:s e'; 18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 149 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 154 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type2.phpt | 9 $date_format = 'Y-m-d H:i:s T e'; 18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 149 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 154 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-ba.phpt | 9 $date_format = 'Y-m-d H:i:s T e'; 20 . $start->add($interval)->format($date_format) . "\n"; 26 . $start->add($interval)->format($date_format) . "\n"; 32 . $start->add($interval)->format($date_format) . "\n"; 38 . $start->add($interval)->format($date_format) . "\n"; 44 . $start->add($interval)->format($date_format) . "\n"; 50 . $start->add($interval)->format($date_format) . "\n"; 56 . $start->add($interval)->format($date_format) . "\n"; 62 . $start->add($interval)->format($date_format) . "\n"; 68 . $start->add($interval)->format($date_format) . "\n"; [all …]
|
H A D | date_format_basic1.phpt | 2 Test date_format() function : basic functionality 14 echo "*** Testing date_format() : basic functionality ***\n"; 17 var_dump( date_format($date, "F j, Y, g:i a") ); 18 var_dump( date_format($date, "m.d.y") ); 19 var_dump( date_format($date, "j, n, Y") ); 20 var_dump( date_format($date, "Ymd") ); 21 var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); 22 var_dump( date_format($date, '\i\t \i\s \t\h\e jS \d\a\y.') ); 23 var_dump( date_format($date, "D M j G:i:s T Y") ); 24 var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bs.phpt | 10 $date_format = 'Y-m-d H:i:s T e'; 22 . $end->sub($interval)->format($date_format) . "\n"; 28 . $end->sub($interval)->format($date_format) . "\n"; 34 . $end->sub($interval)->format($date_format) . "\n"; 40 . $end->sub($interval)->format($date_format) . "\n"; 47 . $end->sub($interval)->format($date_format) . "\n"; 54 . $end->sub($interval)->format($date_format) . "\n"; 60 . $end->sub($interval)->format($date_format) . "\n"; 67 . $end->sub($interval)->format($date_format) . "\n"; 73 . $end->sub($interval)->format($date_format) . "\n"; [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fd.phpt | 9 $date_format = 'Y-m-d H:i:s T e'; 18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fs.phpt | 11 $date_format = 'Y-m-d H:i:s T e'; 21 echo 'fs1 ' . $end->format($date_format) . " - $interval_spec = " 22 . $end->sub($interval)->format($date_format) . "\n"; 27 echo 'fs2 ' . $end->format($date_format) . " - $interval_spec = " 28 . $end->sub($interval)->format($date_format) . "\n"; 33 echo 'fs3 ' . $end->format($date_format) . " - $interval_spec = " 34 . $end->sub($interval)->format($date_format) . "\n"; 40 . $end->sub($interval)->format($date_format) . "\n"; 46 . $end->sub($interval)->format($date_format) . "\n"; 52 . $end->sub($interval)->format($date_format) . "\n"; [all …]
|
H A D | date_format_error.phpt | 2 Test date_format() function : error conditions 5 /* Prototype : string date_format ( DateTime $object , string $format ) 14 echo "*** Testing date_format() : error conditions ***\n"; 17 var_dump( date_format() ); 22 var_dump( date_format($date) ); 27 var_dump( date_format($date, $format, $extra_arg) ); 31 var_dump( date_format($invalid_obj, $format) ); 33 var_dump( date_format($invalid_obj, $format) ); 35 var_dump( date_format($invalid_obj, $format) ); 40 *** Testing date_format() : error conditions *** [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fa.phpt | 9 $date_format = 'Y-m-d H:i:s T e'; 19 echo 'fa1 ' . $start->format($date_format) . " + $interval_spec = " 20 . $start->add($interval)->format($date_format) . "\n"; 25 echo 'fa2 ' . $start->format($date_format) . " + $interval_spec = " 26 . $start->add($interval)->format($date_format) . "\n"; 31 echo 'fa3 ' . $start->format($date_format) . " + $interval_spec = " 32 . $start->add($interval)->format($date_format) . "\n"; 37 echo 'fa4 ' . $start->format($date_format) . " + $interval_spec = " 38 . $start->add($interval)->format($date_format) . "\n"; 44 . $start->add($interval)->format($date_format) . "\n"; [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd1.phpt | 9 $date_format = 'Y-m-d H:i:s T e'; 18 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 23 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 28 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 33 echo 'bd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 38 echo 'bd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
|
H A D | date_format_variation1.phpt | 2 Test date_format() function : usage variation - Passing unexpected values to first argument $object. 5 /* Prototype : string date_format ( DateTimeInterface $object , string $format ) 11 echo "*** Testing date_format() : usage variation - unexpected values to first argument \$object**… 102 var_dump( date_format($object, $format) ); 111 *** Testing date_format() : usage variation - unexpected values to first argument $object*** 135 Warning: date_format() expects parameter 1 to be DateTimeInterface, float given in %s on line %d 140 Warning: date_format() expects parameter 1 to be DateTimeInterface, float given in %s on line %d 145 Warning: date_format() expects parameter 1 to be DateTimeInterface, float given in %s on line %d 150 Warning: date_format() expects parameter 1 to be DateTimeInterface, array given in %s on line %d 170 Warning: date_format() expects parameter 1 to be DateTimeInterface, null given in %s on line %d [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 11 $date_format = 'Y-m-d H:i:s T e'; 29 echo 'bd0 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 35 echo 'bd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 41 echo 'bd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 47 echo 'bd8 ' . $end->format($date_format) . ' - ' . $start->format($date_format)
|
H A D | date_modify-1.phpt | 9 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 11 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 15 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 17 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 20 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 22 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
|
H A D | date_time_set_basic1.phpt | 19 echo "Initial date: " . date_format($datetime, DATE_RFC2822) . "\n"; 22 echo "After modification1 " . date_format($datetime, DATE_RFC2822) . "\n"; 25 echo "After modification2 " . date_format($datetime, DATE_RFC2822) . "\n"; 28 echo "After modification3 " . date_format($datetime, DATE_RFC2822) . "\n"; 31 echo "After modification4 " . date_format($datetime, DATE_RFC2822) . "\n"; 34 echo "After modification5 " . date_format($datetime, DATE_RFC2822) . "\n";
|
H A D | date_format_variation2.phpt | 2 Test date_format() function : usage variation - Passing unexpected values to second argument $forma… 5 /* Prototype : string date_format ( DateTime $object , string $format ) 11 echo "*** Testing date_format() : usage variation - unexpected values to second argument \$format*… 102 var_dump( date_format($object, $format) ); 111 *** Testing date_format() : usage variation - unexpected values to second argument $format*** 136 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 141 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 146 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 151 Warning: date_format() expects parameter 2 to be string, array given in %s on line %d 195 Warning: date_format() expects parameter 2 to be string, object given in %s on line %d [all …]
|
H A D | bug52577.phpt | 8 $date_format = DATE_RFC2822; 11 echo "Date(PHP): ".date($date_format,$unixtime)."\n"; 13 echo "DateTime(PHP Class): ".$date->format($date_format);
|
H A D | DateTime_format_basic2.phpt | 2 Test date_format() function : basic functionality 8 * Alias to functions: date_format 14 echo "*** Testing date_format() : basic functionality - formatting coinstants ***\n"; 32 *** Testing date_format() : basic functionality - formatting coinstants ***
|
H A D | date_modify_basic1.phpt | 20 echo "After modification 1: " . date_format($datetime, "D, d M Y") . "\n"; 23 echo "After modification 2: " . date_format($datetime, "D, d M Y H:i:s") . "\n"; 26 echo "After modification 3: " . date_format($datetime, "D, d M Y") . "\n"; 29 echo "After modification 4: " . date_format($datetime, "D, d M Y") . "\n";
|
H A D | date_modify-2.phpt | 9 echo date_format($d, 'D, d M Y H:i:s T'), "\n"; 11 echo date_format($d, 'D, d M Y H:i:s T'), "\n";
|
H A D | date_isodate_set_basic1.phpt | 21 echo "Week 40 of 2009 is in \"" . date_format($datetime, "F") . "\"\n"; 25 echo "Week 30 day 3 of 2009 is \"" . date_format($datetime, "D M j") . "\"\n"; 29 echo "..same day last year was \"" . date_format($datetime, "D M j") . "\"\n";
|
H A D | date_date_set_basic1.phpt | 18 echo date_format($datetime, DATE_RFC2822) . "\n"; 22 echo date_format($datetime, DATE_RFC2822) . "\n";
|
H A D | bug49585.phpt | 2 Bug #49585 (date_format buffer not long enough for >4 digit years)
|
H A D | date_timestamp_set.phpt | 16 var_dump(date_format($dtms021, 'B => (U) => T Y-M-d H:i:s'));
|
H A D | bug48058.phpt | 14 echo date_format( $dt, DATE_ISO8601 );
|
H A D | call_function_from_method.phpt | 14 return date_format($this->date, 'Y');
|