Home
last modified time | relevance | path

Searched refs:createFromFormat (Results 1 – 25 of 37) sorted by relevance

12

/PHP-8.2/ext/date/tests/
H A Dbug51393.phpt7 $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 Dbug55407.phpt2 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 Dbug68078.phpt7 $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 Dbug54316.phpt2 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 Dbug68669.phpt2 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 Dbug54851.phpt2 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 Dbug68078_negative.phpt7 $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 Dbug73426.phpt2 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 Dbug76770.phpt2 Bug #76770 'U' modifier in 'datetime::createFromFormat' adds seconds to other specifiers
5 var_dump(datetime::createFromFormat('U H', '3600 01')->getTimestamp());
H A Dbug72963.phpt17 $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 Dbug60302-001.phpt2 Test for bug #60302: DateTime::createFromFormat should new static(), not new self()
8 $d = MyDateTime::createFromFormat('Y-m-d', '2011-01-01');
H A Dbug60302-002.phpt2 Test for bug #60302: DateTimeImmutable::createFromFormat should new static(), not new self()
8 $d = MyDateTime::createFromFormat('Y-m-d', '2011-01-01');
H A Dbug65502.phpt2 Test for bug #65502: DateTimeImmutable::createFromFormat returns DateTime
9 echo get_class(DateTimeImmutable::createFromFormat('j-M-Y', '12-Sep-2013'));
H A Dbug53879.phpt2 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 Dbug80057.phpt2 Bug #80057 (DateTimeImmutable::createFromFormat() does not populate time)
6 $parsed = DateTimeImmutable::createFromFormat('Y-m-d', '2020-09-04');
H A Dbug66836.phpt2 Bug #66836 (DateTime::createFromFormat 'U' with pre 1970 dates fails parsing)
8 $dt = DateTime::createFromFormat('U', $timestamp);
H A DDateTime_fix_createFromFormat.phpt18 $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 Dgh9700.phpt2 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 Dbug64157.phpt2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message
9 DateTime::createFromFormat('s', '0');
H A Dgh11854.phpt2 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 Dbug75577.phpt2 Test for bug #75577: DateTime::createFromFormat does not accept 'v' format specifier
10 $d2 = DateTime::createFromFormat(DateTime::RFC3339_EXTENDED, $s);
/PHP-8.2/Zend/tests/parameter_default_values/
H A Dinternal_declaration_error_null.phpt7 public static function createFromFormat(): DateTime|false
13 …error: Declaration of MyDateTime::createFromFormat(): DateTime|false must be compatible with DateT…
/PHP-8.2/Zend/tests/type_declarations/variance/internal_parent/
H A Dunresolvable_inheritance_check_return.phpt7 public static function createFromFormat($format, $datetime, $timezone = null): Wrong { }
12 …k compatibility between Test::createFromFormat($format, $datetime, $timezone = null): Wrong and Da…
H A Dunresolvable_inheritance_check_param.phpt7 …public static function createFromFormat($format, $datetime, Wrong $timezone = null): DateTime|fals…
12 …ibility between Test::createFromFormat($format, $datetime, ?Wrong $timezone = null): DateTime|fals…
/PHP-8.2/ext/session/tests/
H A Dgh13680.phpt19 public static function createFromFormat($format, $datetime, $timezone = null): Wrong {}
25 …k compatibility between Test::createFromFormat($format, $datetime, $timezone = null): Wrong and Da…

Completed in 61 milliseconds

12