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

56 Commits

Author SHA1 Message Date
Jack Worman
f5e51d56b0 Fix description for "!" and "|" format tokens 2026-02-04 13:05:17 +01:00
Pierre Ambroise
cafec7df4c Fix uppercase in method name (#4966) 2025-11-02 15:18:35 +01:00
AllenJB
3a8c3e77df Enable runnable (WASM) examples for datetime (#4887)
* Enable runnable (WASM) examples for datetime
2025-10-31 10:32:20 +00:00
homersimpsons
dcf89d157a 📝 Document Y format footgun (#4926)
Updated descriptions for `Y` format to clearly shows that 2 digit years may lead to unexpected results.
2025-10-15 14:54:52 +01:00
Mikhail Alferov
2cfd69623a setisodate.xml Fix an example (#4919)
The first example seems to have been moved from a mutable DateTime :) We need to assign the result of the method to a variable
2025-10-12 22:35:43 +01:00
Tim Düsterhus
42d5fb01e0 Update function attributes
Generated with:

     build/gen_stub.php --replace-methodsynopses **.stub.php ../phpdoc/en/

And then manually picked the changes.
2025-10-04 16:04:02 +02:00
Máté Kocsis
c8ba91f7e5 Synchronize manual with stubs for PHP 8.4 - part 2 (#4178) 2024-12-01 12:02:50 +00:00
Derick Rethans
3c9bf397b8 Fixed #3458: missing 'p' with createFromFormat 2024-06-24 11:41:33 +01:00
smeghead
8b4c3d8dc5 Fix typo of Section 'Errors/Exceptions' in DateTime/DateTimeImmutable construct (#2945)
a 'Е'(Е) of `Exception` was a multibyte character. fixed typo to 'E'(E).
2023-11-18 04:43:36 +00:00
Derick Rethans
a11c5b53bc Fixed #2843: Error section mistakingly called the previous situation 'Exception' instead of warning 2023-10-10 10:09:21 +01:00
Derick Rethans
d7b51f6869 Fix whitespace 2023-10-03 11:49:44 +01:00
Derick Rethans
71692b6f4c Add Date/Time exception documentation 2023-10-03 11:48:54 +01:00
Derick Rethans
280c148681 Fixed indentation 2023-08-03 10:19:42 +01:00
Derick Rethans
4e35816b36 Document new allowed characters, and what ' ' stands for 2023-08-03 10:19:35 +01:00
Derick Rethans
b574a9a53b Fixed wording when checking out note #128761 2023-07-27 14:38:07 +01:00
Derick Rethans
4d13f5e4b4 Fixed GH-2495: DateTime::createFromFormat now throws ValueError with NULL-bytes 2023-07-26 16:16:58 +01:00
Yoshinari Takaoka
453f103a69 fixed section order, reported by section-order.php 2023-04-18 22:38:56 +09:00
Derick Rethans
35b75f06bc Fixed aliases of 'getLastErrors' and add changelog to incorporate user note 2023-04-18 14:09:52 +01:00
Derick Rethans
ee8255a997 Integrate user notes 2023-03-29 11:44:17 +01:00
Máté Kocsis
02ff7fef5b Update ext/date role attributes (#1972) 2022-12-11 16:34:22 +01:00
Anantajit JG
a09cd538fc Update now instead of null in the example for DateTimeImmutable::__construct
Closes GH-2014.
2022-11-16 16:10:18 +01:00
Mark Railton
022f827bc2 Corrects code sample
Fixes GH-1989.
Closes GH-1998.
2022-11-12 11:54:01 +01:00
Máté Kocsis
32b489bb38 Specify return type of DateTime::createFromImmutable() and DateTimeImmutable::createFromMutable() (#1959) 2022-11-10 11:45:43 +01:00
Christoph M. Becker
769fdeb145 Match return value section with signature
Cf. <https://github.com/php/doc-en/pull/1918>.
2022-10-27 14:45:55 +02:00
Christoph M. Becker
cd6c0433a8 [skip-revcheck] Fix typo (effects → affects) 2022-09-13 14:05:28 +02:00
Derick Rethans
d26d03c3c4 Add missing word 2022-09-13 12:48:14 +01:00
Derick Rethans
6965a6fb79 Fixed #1264: date_parse_from_format error when parsing 'Gis' format 2022-09-13 12:41:45 +01:00
Tiffany
a2e7b5892c Fix build (#1745)
Fixes errors introduced by 1a9ee818e5
2022-08-12 20:40:52 +01:00
Derick Rethans
1a9ee818e5 Incorporate useful information from notes (take #1) 2022-08-12 17:31:45 +01:00
Martin Samesch
9bb9a3a5b0 Typo 2022-07-23 12:31:56 +02: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
Matt Smith
cf85cdde33 Fix wrong class in example code
there is no DateTimeImmutableZone, its just DateTimeZone

Closes GH-1683.
2022-07-06 16:17:17 +02:00
Derick Rethans
084a0039f6 Fixed bug #75745: DateTime::createFromFormat 'u' specifier not documented correctly 2022-06-08 15:59:29 +01:00
Derick Rethans
dab41534c6 Fixed bug #79926: Unclear behavior with createFromFormat using absolute and relative values 2022-06-04 18:14:24 +01:00
Derick Rethans
0aba3ea811 Fixed bug #80694: DateTimeImmutable::createFromFormat not return false in all cases 2022-06-04 17:53:29 +01:00
Derick Rethans
f0c9bb04d7 Fixed bug #81347: 2021-03-34 is correct date for DateTime::createFromFormat() 2022-06-04 17:26:15 +01:00
Derick Rethans
c3e40292f4 Fixed English 2022-06-04 16:50:56 +01:00
Derick Rethans
e5373bc761 Fixed bug #77701: DateTime::createFromFormat does not set default parts 2022-06-02 16:51:53 +01:00
Derick Rethans
eeeb152d8a Added missing return values/parameters sections 2022-06-02 16:18:33 +01:00
Derick Rethans
33dd071b0d Fixed bug #72586: Document that order of characters is important 2022-06-02 15:29:47 +01:00
Derick Rethans
bbfdc364de Swap DateTime and DateTimeImmutable documention to push people towards using DateTimeImmutable 2022-06-02 11:44:54 +01:00
Máté Kocsis
933f076d22 [skip-revcheck] Remove unnecessary DateTimeImmutable method synopsis roles (#1257) 2021-12-26 12:09:20 +01:00
Sergey Panteleev
70fe4159bf Fix some issues in datetime directory
Part of #658
2021-06-10 16:36:10 +03: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
e8af4bab45 Add createFromInterface() for DateTime objects
Closes GH-257.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352009 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-10 23:12:47 +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
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
Christoph Michael Becker
9f0ddf9569 Fix typo
Patch provided by Leo Gumbo.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344562 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-25 13:52:25 +00:00
Andrea Faulds
932a77838b Fix bug #74405 (Undocumented 4th parameter of DateTime::setTime)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342846 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-12 00:56:39 +00:00
Peter Cowburn
976df74b38 use same refpurpose as DateTime::createFromFormat
Patch contributed anonymously via online editor

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342522 c90b9560-bf6c-de11-be94-00142212c4b1
2017-05-28 13:48:28 +00:00