Vojta Matějka
52222422c0
Added info about the DateInterval::invert property ( #3466 )
2024-09-22 20:28:08 +01:00
Tim MacDonald
8859c8b96c
Standardise casting spacing ( #2717 )
2024-09-11 14:29:15 +01:00
assyrus-favolo
81908751c5
fix typo targed -> target (GH-3708)
2024-09-02 12:35:50 +02:00
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
Derick Rethans
71692b6f4c
Add Date/Time exception documentation
2023-10-03 11:48:54 +01:00
Derick Rethans
dbbcd32d72
Integrate user note into the manual
2023-08-09 10:14:10 +01:00
Derick Rethans
6071d92a37
Integrate user notes comments
2023-01-18 16:13:39 +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
bc70945d85
Fixed #1059 : DateTime::diff Not handling DST changes correctly
2022-09-13 12:59:09 +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
Christoph M. Becker
8c3c7f1adb
Fix GH-1627: DateTimeInterface::diff() does not return false on failure
...
Well, technically it did prior to PHP 8.0.0, but that was actually
undefined behavior and as such does not need to be documented for each
function individually.
2022-07-07 19:15:44 +02: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
Christoph M. Becker
d74736d803
Fix #73857 : Y2038 issue with getTimestamp and setTimestamp, with alternative
2021-11-17 15:47:43 +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
8cdc6621f9
Remove PHP 5, 7 references ( #563 )
...
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03: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 M. Becker
c2120bd346
Update some methodsynopses
...
Cf.
<7290dc4dcf >,
<c31f9f7ee4 >.
2021-01-18 19:45:28 +01:00
DColt
2424a1accc
Whitespace fix for datetime.getoffset
...
Closes GH-307.
2021-01-02 23:36:03 +01:00
Yoshinari Takaoka
260c0b8f4d
Fixed oop return type of DateTimeInterface::getOffset.
...
Closes CH-282.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352182 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 10:20:49 +00:00
Christoph Michael Becker
0ec192da9f
date_timestamp_get() and aliases do no longer return false on failure
...
Cf. <b67c232189 (r45293163) >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352146 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 22:35:30 +00:00
Christoph Michael Becker
4d5206538d
Fix return types
...
All these aliases may return false.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352145 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 18:36:10 +00: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
b8758b0605
Use entities in initializer
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Jakub Vrana
b89d5b4683
Add missing version info
...
Found by PhD
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330435 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-31 22:33:43 +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