25 Commits

Author SHA1 Message Date
Mikhail Alferov
7f7fce55c0 DateTimeInterface::format: fix interface and method names (GH-3693)
We must either add the names of the methods of both classes — DateTime and DateTimeImmutable, or replace the name of the method of the DateTime::format class with the name of the interface method — DateTimeInterface::format, and the name of the DateTime class with the name of the interface common to these classes — DateTimeInterface. Otherwise, the description of the `u` parameter behaves as if it does not concern the DateTimeImmutable::format() method (although it is assumed that every PHP programmer knows about this; but in reality not everyone knows).

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-08-31 15:03:31 +02:00
Lu Fei
ac397fd0da Fix typo: required (#3012) 2023-12-13 09:52:15 +00:00
Christoph M. Becker
e057f1f552 Remove superfluous changelog entries
Actually, most (or even all) datetime functions returned false prior to
PHP 8.0.0, where they now throw an error.  Besides ZPP failures which
we certainly do not want to document explicitly, that also happened in
case the objects have not been properly initialized, which is so close
to ZPP failures, that we don't want to document that either.

Co-authored-by: Alexander Menshchikov <amenshchikov@gmail.com>

Closes GH-1358.
2022-12-27 16:54:37 +01:00
Máté Kocsis
02ff7fef5b Update ext/date role attributes (#1972) 2022-12-11 16:34:22 +01:00
Máté Kocsis
0466dd93f7 Sync ext/date class synopsis with recent stub changes (#1597)
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-11-07 13:38:34 +01:00
Christoph M. Becker
892b3e396e Fix GH-1899: Date example for "p" is misleading 2022-10-19 15:23:40 +02:00
Derick Rethans
ff502b2d9b Fixed GH-1443: DateTime::format has lost information about escaping 2022-10-19 09:46:05 +01:00
Derick Rethans
1a9ee818e5 Incorporate useful information from notes (take #1) 2022-08-12 17:31:45 +01:00
Derick Rethans
b38338a072 Document new 'x' and 'X' format letters for DateTimeInterface::format and DateTime(Immutable)::createFromFormat 2022-07-22 17:11:55 +01:00
Derick Rethans
5e983c42a0 Fixed bug #79725: Update reference to RFC2822 to RFC5322 2022-06-02 17:18:17 +01:00
Sergey Panteleev
4a41b3c620 Fix the build 2022-05-13 14:08:44 +03:00
Derick Rethans
8cc12de858 Fixed bug #45509: Clarify ocumentation for DateTime::format and DateTime::createFromFormat's 'Y' character 2022-05-13 11:24:02 +01:00
Christoph M. Becker
cc1ac298e0 Fix GH-1460: p format character only available as of PHP 8.0.0 2022-03-14 10:32:36 +01:00
Matt Thomas
aaea72f308 Update ISO 8601 text
Use _ISO 8601_, instead of _ISO-8601_, for consistency and alignment with https://www.iso.org/iso-8601-date-and-time-format.html

Closes GH-1060.
2021-11-03 17:14:49 +01:00
Christoph M. Becker
cafd6b7449 Fix #76748: date format timezone abbreviations and changes not well documented 2021-08-04 16:55:59 +02:00
Sergey Panteleev
a0ae28d3bc Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Christoph M. Becker
511dd10754 The format char p is only available as of PHP 8.0.0.
This integrates user note 125722.
2021-01-25 14:20:24 +01:00
Christoph Michael Becker
34188f8256 Generate ext/date methodsynopses based on stubs
Closes GH-185.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352143 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 15:06:41 +00:00
Christoph Michael Becker
243afef598 Document p date formatter code
Closes GH-230.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351587 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 18:10:24 +00:00
Christoph Michael Becker
bc27cd7cfc Remove obsolete PHP 5 specific info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351586 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 18:05:28 +00:00
Christoph Michael Becker
b95d28e6ec Fix return types
Functions which return false on failure should state that in their
signature as well.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
a59ed9b526 Updates for datetime extension
Patch contributed by derick@

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350219 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-27 11:47:54 +00:00
Jakub Vrana
2479b98e82 Don't inherit from DateTimeInterface
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330270 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-17 18:17:21 +00:00
Jakub Vrana
f65a959cff Document PHP 5.5 date classes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330266 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-17 06:06:10 +00:00