/php-src/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): DateTime… 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 | 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 | 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 | 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 | 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 | 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 | 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 | bug66836.phpt | 2 Bug #66836 (DateTime::createFromFormat 'U' with pre 1970 dates fails parsing) 8 $dt = DateTime::createFromFormat('U', $timestamp);
|
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 | gh9700.phpt | 2 Bug GH-9700 (DateTime::createFromFormat: Parsing TZID string is too greedy) 5 var_dump(DateTime::createFromFormat('Y-m-d\TH:i:sP[e]', '2022-02-18T00:00:00+01:00[Europe/Berlin]')…
|
H A D | bug64157.phpt | 2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message 9 DateTime::createFromFormat('s', '0');
|
H A D | gh11854.phpt | 2 Bug GH-11854 (DateTime:createFromFormat stopped parsing DateTime with extra space) 7 $dateTime = DateTime::createFromFormat("D M d H:i:s Y", "Wed Aug 2 08:37:50 2023");
|
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);
|
/php-src/Zend/tests/parameter_default_values/ |
H A D | internal_declaration_error_null.phpt | 7 public static function createFromFormat(): DateTime|false 13 …error: Declaration of MyDateTime::createFromFormat(): DateTime|false must be compatible with DateT…
|
/php-src/Zend/tests/type_declarations/variance/internal_parent/ |
H A D | unresolvable_inheritance_check_return.phpt | 7 public static function createFromFormat($format, $datetime, $timezone = null): Wrong { } 12 …k compatibility between Test::createFromFormat($format, $datetime, $timezone = null): Wrong and Da…
|
H A D | unresolvable_inheritance_check_param.phpt | 7 …public static function createFromFormat($format, $datetime, ?Wrong $timezone = null): DateTime|fal… 12 …ibility between Test::createFromFormat($format, $datetime, ?Wrong $timezone = null): DateTime|fals…
|
/php-src/ext/session/tests/ |
H A D | gh13680.phpt | 19 public static function createFromFormat($format, $datetime, $timezone = null): Wrong {} 25 …k compatibility between Test::createFromFormat($format, $datetime, $timezone = null): Wrong and Da…
|