Home
last modified time | relevance | path

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

12

/PHP-8.0/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) {
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 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 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 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 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 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 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 Dbug66836.phpt2 Bug #66836 (DateTime::createFromFormat 'U' with pre 1970 dates fails parsing)
8 $dt = DateTime::createFromFormat('U', $timestamp);
H A Dbug64157.phpt2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message
9 DateTime::createFromFormat('s', '0');
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 Dbug75577.phpt2 Test for bug #75577: DateTime::createFromFormat does not accept 'v' format specifier
10 $d2 = DateTime::createFromFormat(DateTime::RFC3339_EXTENDED, $s);
H A Dbug75232.phpt8 $d1 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z');
11 $d2 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z');
H A DDatePeriod_no_advance_on_valid.phpt6 $start = DateTime::createFromFormat('Y-m-d', '2022-01-01');
7 $end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
H A Dbug63435.phpt8 $datetime = Datetime::createFromFormat("u", sprintf("%06ld", $i));
/PHP-8.0/Zend/tests/parameter_default_values/
H A Dinternal_declaration_error_null.phpt7 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 Dinternal_parent.phpt7 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 Dbug75556.phpt11 function createFromFormat($format, $date, ?\DateTimeZone $tz = null): ?\DateTimeInterface
23 var_dump(createFromFormat('m/d/Y', '12/07/2017', null));

Completed in 21 milliseconds

12