/PHP-8.0/ext/date/tests/ |
H A D | bug51393.phpt | 7 $dt = DateTime::createFromFormat('O', '+0800'); 10 $dt = DateTime::createFromFormat('P', '+08:00'); 13 $dt = DateTime::createFromFormat('O', '-0800'); 16 $dt = DateTime::createFromFormat('P', '-08:00'); 19 $dt = DateTime::createFromFormat('[O]', '[+0800]'); 22 $dt = DateTime::createFromFormat('[P]', '[+08:00]'); 25 $dt = DateTime::createFromFormat('[O]', '[-0800]'); 31 $dt = DateTime::createFromFormat('O', 'GMT+0800'); 34 $dt = DateTime::createFromFormat('P', 'GMT+08:00'); 37 $dt = DateTime::createFromFormat('O', 'GMT-0800'); [all …]
|
H A D | bug55407.phpt | 2 Bug #55407 (Impossible to prototype DateTime::createFromFormat) 9 public static function createFromFormat($format, $time, \DateTimeZone $timezone = null) { 10 return new DateTime(parent::createFromFormat($format, $time, $timezone));
|
H A D | bug68078.phpt | 7 $date1 = DateTime::createFromFormat('U.u', '1448889063.3531'); 8 $date2 = DateTime::createFromFormat('U.u', '1448889063.5216'); 9 $date3 = DateTime::createFromFormat('U.u', '1448889063.5216');
|
H A D | bug54316.phpt | 2 Bug #54316 (DateTime::createFromFormat does not handle trailing '|' correctly) 7 $dt = DateTime::createFromFormat('Y-m-d|', '2011-02-02'); 10 $dt = DateTime::createFromFormat('Y-m-d!', '2011-02-02');
|
H A D | bug68669.phpt | 2 DateTime::createFromFormat() does not allow NULL $timezone 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 | bug68078_negative.phpt | 7 $earlyDate1 = DateTime::createFromFormat('U.u', '1.8642')->modify('-5 seconds'); 8 $earlyDate2 = DateTime::createFromFormat('U.u', '1.2768')->modify('-5 seconds'); 9 $earlyDate3 = DateTime::createFromFormat('U.u', '1.2768')->modify('-5 seconds');
|
H A D | bug54851.phpt | 2 Bug #54851 (DateTime::createFromFormat() doesn't interpret "D") 8 $date2 = DateTime::createFromFormat("D H i s", $date->format("D"). ' 0 00 00'); 14 $datePre = DateTime::createFromFormat("!D d M Y", "Fri 17 may 2011"); 15 $datePost = DateTime::createFromFormat("!d M Y D", "17 may 2011 Fri"); 23 $date2 = DateTime::createFromFormat("D H i s", "Tuesday 0 00 00"); 29 $date1 = DateTime::createFromFormat("!D d M Y", "Fri 19 November 2011"); 36 $date1 = DateTime::createFromFormat("!D d M Y", "Sat 19 November 2011");
|
H A D | bug76770.phpt | 2 Bug #76770 'U' modifier in 'datetime::createFromFormat' adds seconds to other specifiers 5 var_dump(datetime::createFromFormat('U H', '3600 01')->getTimestamp());
|
H A D | bug73426.phpt | 2 Bug #73426 (createFromFormat with 'z' format char results in incorrect time) 9 var_dump(DateTime::createFromFormat($format, $date)); 13 var_dump(DateTime::createFromFormat($format, $date));
|
H A D | bug60302-001.phpt | 2 Test for bug #60302: DateTime::createFromFormat should new static(), not new self() 8 $d = MyDateTime::createFromFormat('Y-m-d', '2011-01-01');
|
H A D | bug60302-002.phpt | 2 Test for bug #60302: DateTimeImmutable::createFromFormat should new static(), not new self() 8 $d = MyDateTime::createFromFormat('Y-m-d', '2011-01-01');
|
H A D | bug65502.phpt | 2 Test for bug #65502: DateTimeImmutable::createFromFormat returns DateTime 9 echo get_class(DateTimeImmutable::createFromFormat('j-M-Y', '12-Sep-2013'));
|
H A D | bug53879.phpt | 2 Bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date) 7 $date = DateTime::createFromFormat(DateTime::COOKIE, "Mon, 21-Jan-2041 15:24:52 GMT");
|
H A D | bug80057.phpt | 2 Bug #80057 (DateTimeImmutable::createFromFormat() does not populate time) 6 $parsed = DateTimeImmutable::createFromFormat('Y-m-d', '2020-09-04');
|
H A D | bug72963.phpt | 17 $d1 = DateTime::createFromFormat('!m/d/Y', $string); 23 $d2 = DateTimeImmutable::createFromFormat('!m/d/Y', $string); 87 DateTime::createFromFormat(): Argument #2 ($datetime) must not contain any null bytes 88 DateTimeImmutable::createFromFormat(): Argument #2 ($datetime) must not contain any null bytes
|
H A D | bug66836.phpt | 2 Bug #66836 (DateTime::createFromFormat 'U' with pre 1970 dates fails parsing) 8 $dt = DateTime::createFromFormat('U', $timestamp);
|
H A D | bug64157.phpt | 2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message 9 DateTime::createFromFormat('s', '0');
|
H A D | DateTime_fix_createFromFormat.phpt | 18 $fromFormat = DateTime::createFromFormat( "D., M# j, Y g:iA", $string ); 21 echo "createFromFormat method: " . $fromFormat->format("D., M. j, Y g:iA") . "\n"; 27 createFromFormat method: Thu., Nov. 29, 2012 5:00PM
|
H A D | bug75577.phpt | 2 Test for bug #75577: DateTime::createFromFormat does not accept 'v' format specifier 10 $d2 = DateTime::createFromFormat(DateTime::RFC3339_EXTENDED, $s);
|
H A D | bug75232.phpt | 8 $d1 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z'); 11 $d2 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z');
|
H A D | DatePeriod_no_advance_on_valid.phpt | 6 $start = DateTime::createFromFormat('Y-m-d', '2022-01-01'); 7 $end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
|
H A D | bug63435.phpt | 8 $datetime = Datetime::createFromFormat("u", sprintf("%06ld", $i));
|
/PHP-8.0/Zend/tests/parameter_default_values/ |
H A D | internal_declaration_error_null.phpt | 7 public static function createFromFormat() 13 Fatal error: Declaration of MyDateTime::createFromFormat() must be compatible with DateTime::create…
|
/PHP-8.0/Zend/tests/type_declarations/variance/ |
H A D | internal_parent.phpt | 7 public static function createFromFormat($format, $datetime, Wrong $timezone = null) { } 12 …k compatibility between Test::createFromFormat($format, $datetime, ?Wrong $timezone = null) and Da…
|
/PHP-8.0/ext/opcache/tests/ |
H A D | bug75556.phpt | 11 function createFromFormat($format, $date, ?\DateTimeZone $tz = null): ?\DateTimeInterface 23 var_dump(createFromFormat('m/d/Y', '12/07/2017', null));
|