1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00

22 Commits

Author SHA1 Message Date
KentarouTakeda
a69d8c2c89 Fix typo: RFC 3399 -> RFC 3339 in DateTimeInterface::ATOM (#5423)
The `DATE_ATOM` constant description incorrectly references "RFC 3399"
instead of "RFC 3339" (Date and Time on the Internet: Timestamps).
2026-03-17 19:01:09 +01:00
Lucas Werkmeister
6bbb5b9685 Improve date format documentation a little bit (#5184)
Make it a bit more visible yet that DATE_ISO8601 is not compatible with
ISO-8601 (anyone wondering “why ‘like’?” will hopefully see the note
immediately below), and mention the standards that Atom is compatible
with (straight from RFC 4287, section 3.3; I omitted the “Date and Time
Formats” W3C note as it doesn’t seem as prominent as the others) in the
hope of encouraging more people to use it.
2026-01-30 10:31:26 +00:00
Marcos Porto Mariño
c9490d424e [skip-revcheck] Correct indentation (#4454) 2025-04-24 16:27:51 +02:00
Kamil Tekiela
130701dd4e Remove duplicate words (#4280)
* Remove duplicate the

* Remove duplicate that
2024-12-09 16:32:46 +01:00
Alexandre Daubois
576c7c43fe [PHP 8.4] Add ext-date constant types (#4237) 2024-12-03 21:59:52 +00:00
Gina Peter Banyard
4d17b7b494 [skip-revcheck] Convert class markup to be compatible with DocBook 5.2
Closes GH-3415
2024-06-14 17:04:53 +01:00
Máté Kocsis
9eb4a46bba Use new class synopsis markup for interfaces (#2620) 2023-07-29 05:55:01 +01:00
Máté Kocsis
96a8379cd8 Render interfaces according to the new PhD format (#2556)
According to https://github.com/php/phd/pull/75
2023-07-04 20:35:33 +01:00
divinity76
cb57902073 ref the exact section of ISO8601 broken
historically there has been much confusion about whether or not DateTime::ISO8601 actually breaks the ISO8601 specs or not.

as late as an early draft of "Deprecations for PHP 8.1" RFC incorrectly contained

>> There's a number of bug reports related to this. From what I understand, the core problem here is not that the ISO8601 format is wrong, it's just one of multiple legal ISO-8601 formats. As DateTime formats always refer to a specific format, not a set of multiple possible ones, there doesn't seem to be anything actionable here.

so it's probably a good idea to add a reference to the exact part of ISO8601 being broken.

Closes GH-1619.
2023-01-13 19:20:34 +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
Derick Rethans
1a9ee818e5 Incorporate useful information from notes (take #1) 2022-08-12 17:31:45 +01:00
Derick Rethans
998d22f459 Document new PHP 8.2 constant DateTimeInterface::ISO8601_EXPANDED 2022-07-26 09:05:40 +01:00
Máté Kocsis
b3ed29c728 Generate ext/date class synopses from stubs (#1247) 2021-12-24 10:57:45 +01:00
Danack
b95e76e41d Types are not hints in PHP. (#1003)
As they are checked at run-time, type checking is enforced in PHP and not 'hinted'.

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-10-09 14:43:01 +01:00
Máté Kocsis
ab57ab6849 Mark a few interfaces as oointerface rather than ooclass (#818) 2021-07-30 17:01:16 +02:00
Sergey Panteleev
a0ae28d3bc Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Sergey Panteleev
5fabd07880 Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Christoph Michael Becker
b96ede557f Fix #79245: Document DateTime::RFC7231
This constant was introduced via 
http://git.php.net/?p=php-src.git;a=commit;h=618d97962a8ac59d981c8307cc704790f46090c8
but it was never documented.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349226 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-16 14:05:40 +00:00
Christoph Michael Becker
5032f41c27 Document move of the DateTime constants to DateTimeInterface
Cf <https://github.com/php/php-src/pull/2483>.
We keep the old IDs, though, for BC reasons. 

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345663 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-20 16:24:27 +00:00
Christoph Michael Becker
2288810bf8 documented that DateTimeInterface is not implementable in userland
(see <http://news.php.net/php.internals/87217>)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337210 c90b9560-bf6c-de11-be94-00142212c4b1
2015-07-21 12:19:50 +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