Loyen
7f385d3239
Update return value description
...
Closes GH-2130.
2022-12-30 13:16:34 +01:00
USAMI Kenta
807156628f
Duplicate note on microsecond precision from datetime.formats ( #2114 )
2022-12-28 23:05:27 +09: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
Christoph M. Becker
bba15cbc75
Fix GH-2071: DateTime::createFromFormat() does not accept DateTime
2022-12-16 12:58:29 +01:00
Máté Kocsis
02ff7fef5b
Update ext/date role attributes ( #1972 )
2022-12-11 16:34:22 +01:00
Derick Rethans
7eaf7f05f5
Updated to version 2022.7 (2022g)
2022-11-29 18:20:59 +00: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
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
48b077451f
Updated to version 2022.6 (2022f)
2022-11-02 09:40:03 +00: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
Derick Rethans
c401af11b1
Fixed bug #78055 : Documentation improvement for DatePeriod::getRecurrences and ->recurrences
2022-10-19 16:09:47 +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
05ccdfe483
Updated to version 2022.5 (2022e)
2022-10-12 09:32:14 +01:00
Victor
655c1b1b94
[skip-revcheck] Fix typo (offets → offsets)
...
Closes GH-1867.
2022-10-03 11:36:31 +02:00
Derick Rethans
2b8cfaf93e
Updated to version 2022.4 (2022d)
2022-09-29 11:46:53 +01:00
George Peter Banyard
19e8122137
Remove references to "double" and use float instead ( #1848 )
2022-09-27 12:38:35 +01:00
Guilliam Xavier
be931763f1
Fix one 5+ digit year example (sign is required) ( #1840 )
2022-09-26 11:46:57 +01:00
魔王卷子
20415705a3
Update date-parse.xml ( #1832 )
2022-09-19 12:03:03 +01:00
Derick Rethans
9c0124131f
Document new 5+ digit year support
2022-09-15 09:53:23 +01:00
Derick Rethans
af0e9a7771
Merge branch 'master' of https://github.com/php/doc-en
2022-09-13 13:20:06 +01:00
Derick Rethans
27f6943df8
Fixed #1291 : DatePeriod::__construct(string ) - ISO string does not accept time zone offsets
2022-09-13 13:19:56 +01:00
Christoph M. Becker
cd6c0433a8
[skip-revcheck] Fix typo (effects → affects)
2022-09-13 14:05:28 +02:00
Derick Rethans
bc70945d85
Fixed #1059 : DateTime::diff Not handling DST changes correctly
2022-09-13 12:59:09 +01: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
Christoph M. Becker
f221feb6fe
date.sun(rise|set)_zenith are changed as of PHP 8.0.0 only
2022-09-06 15:54:53 +02:00
Derick Rethans
571dcdae2b
Fixed default value, and explain why it is this strange number
2022-09-06 13:12:30 +01:00
Martin Samesch
b7ac6fa547
[skip-revcheck] Fix typos
2022-08-31 15:16:56 +02:00
Juliette
43a7fc735b
DateTimeZone::listIdentifiers: fix incorrect param reference
...
Refs:
* https://www.php.net/manual/en/datetimezone.listidentifiers.php
* https://3v4l.org/iBYXH
Closes GH-1781.
2022-08-30 13:35:02 +02:00
Christoph M. Becker
aab7fca69f
[skip-revcheck] Remove trailing whitespace
...
Otherwise the whitespace checker won't stop to complain.
2022-08-26 18:22:04 +02:00
Christoph M. Becker
b6acc76c96
Fix build
2022-08-26 17:24:47 +02:00
Derick Rethans
5c951013ca
Incorporate useful information from notes (take #3 )
2022-08-26 15:20:37 +01:00
Martin Samesch
281d618901
[skip-revcheck] Fix typo
2022-08-26 14:20:50 +02:00
Derick Rethans
e0eb28a198
Merge branch 'master' of https://github.com/php/doc-en
2022-08-25 17:21:08 +01:00
Derick Rethans
c249f3bc56
Incorporate useful information from notes (take #2 )
2022-08-25 17:20:54 +01:00
Yoshinari Takaoka
d5229ff024
fixed invalid class name, and sample output.
...
s/DateImmutable/DateTimeImmutable/
https://3v4l.org/4XS4W
2022-08-25 22:54:01 +09:00
Christoph M. Becker
19379827d5
Fix GH-1734: mktime error documentation
...
We do not document what happens in case of passing wrong parameter
types for each function. Thus the `&false;` return value in this case
(prior to PHP 8.0.0) is irrelevant.
The warning on invalid timezones is no longer emitted as of PHP 5.1.2.
This should be checked for other functions as well.
We also remove the details about omitting arguments, since this is
general behavior of functions, and as of PHP 8.0.0, there are named
parameters.
2022-08-25 13:19:28 +02:00
Richard de Boer
f4c0b8570c
DateTime: change suggestion to DateTimeImmutable
...
Using "the DateTimeInterface" instead of a DateTime object makes no sense, using a DateTimeImmutable instead of a DateTime does.
Closes GH-1755.
2022-08-18 11:25:03 +02:00
Moein Pakkhesal
a4ac869932
Fix example for time()
...
Closes GH-1747.
2022-08-15 16:22:34 +02:00
Tiffany
5e248f74f3
Remove 5.2.2 changelog entry from datetime
2022-08-12 15:03:33 -05: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
Derick Rethans
5a4f758ca6
Updated to version 2022.2 (2022b)
2022-08-11 15:48:38 +01:00
Derick Rethans
998d22f459
Document new PHP 8.2 constant DateTimeInterface::ISO8601_EXPANDED
2022-07-26 09:05:40 +01:00
Martin Samesch
9bb9a3a5b0
Typo
2022-07-23 12:31:56 +02:00
Martin Samesch
046e52ff3f
Fix value range
2022-07-23 11:38:11 +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