945 Commits

Author SHA1 Message Date
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
Derick Rethans
57123fe7ba Updated to version 2024.2 (2024b) 2024-09-06 12:29:40 +01:00
assyrus-favolo
81908751c5 fix typo targed -> target (GH-3708) 2024-09-02 12:35:50 +02:00
Mikhail Alferov
d94400847c date.xml replace the DateTime::format method by interface method (GH-3705)
The same as: https://github.com/php/doc-en/pull/3693
2024-09-01 12:40:07 +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
Mikhail Alferov
08757002f2 datetime/constants.xml: add the missing asteriks (#3559)
* datetime/constants.xml: add the missing asteriks

* constants.xml: move the dot to end of the sentence
2024-07-26 02:46:14 +01:00
haszi
48ce43fe79 Remove empty resources pages (#3545)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:17:29 +01:00
haszi
d31dda8227 Add global DATE format constants to constants list (#3512)
* Add global DATE format constants to constants list

* Fix indentation

* Change "since" to "as of"

* Add literal tags

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-07-09 16:12:31 +01:00
Mikhail Alferov
b93836ce6f strftime.xml: amend the code of the example (#3524) 2024-07-07 15:52:41 +01:00
Mikhail Alferov
dd8aa33167 strftime.xml: remove full stop in title (#3523) 2024-07-07 15:52:17 +01:00
Mikhail Alferov
349e3c6502 mktime.xml: replace the deprecated strftime() function in the example (#3522) 2024-07-07 15:44:15 +01:00
haszi
605553e228 Remove empty requirements pages (#3464)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-07 14:34:34 +01:00
Derick Rethans
3c9bf397b8 Fixed #3458: missing 'p' with createFromFormat 2024-06-24 11:41:33 +01: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
USAMI Kenta
03b6583a4a Fix return type of date_sun_info() (#3207)
This function no longer returns false since PHP 8.

Also, "success" for this function means calling the function with three arguments of the correct type.

- https://github.com/php/php-src/blob/php-7.0.0/ext/date/php_date.c#L4725-L4737
- https://github.com/php/php-src/blob/php-7.4.0/ext/date/php_date.c#L5077-L5094

Therefore, only `array` was consistently written in the return value of the prototype.
2024-05-30 16:07:34 +01:00
Gina Peter Banyard
ac83abe55f Fix markup issues in DateTime extension docs (#3327) 2024-04-22 15:18:42 +01:00
Derick Rethans
203caa331b Updated to version 2024.1 (2024a) 2024-02-02 10:19:00 +00:00
Gina Peter Banyard
d4d5216e7a [skip-revcheck] Replace PHP_INI_* with INI_* constants
Performed via a bash script which can be found on PR GH-3140

Closes GH-3140

Co-authored-by: haszi <haszika80@gmail.com>
2024-01-26 14:00:36 +00:00
Derick Rethans
ac7acca480 Updated to version 2023.4 (2023d) 2024-01-02 10:17:50 +00:00
Lu Fei
ac397fd0da Fix typo: required (#3012) 2023-12-13 09:52:15 +00:00
Alexis Lefebvre
4cd196cb84 datetime modify: add examples with other formats 2023-11-22 15:11:40 +00:00
smeghead
8b4c3d8dc5 Fix typo of Section 'Errors/Exceptions' in DateTime/DateTimeImmutable construct (#2945)
a 'Е'(&#1045;) of `Exception` was a multibyte character. fixed typo to 'E'(&#69;).
2023-11-18 04:43:36 +00:00
Máté Kocsis
696b6b9e32 Syncronize ext/date with the stubs based on the PHP 8.3 changes (#2889)
Which fixes the XML markup to use the new markup style.
2023-10-28 13:06:08 +01:00
Máté Kocsis
0070ddc45d Fix markup of DatePeriod::createFromIso8601string() 2023-10-28 11:12:00 +02:00
Yoshinari Takaoka
30d02ea9c6 added missing DateRangeError version info. 2023-10-22 20:06:21 +09:00
George Peter Banyard
7a75b854c8 Use new markup for indicating section should not be chunked (#2866) 2023-10-20 13:17:03 +01: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
d9ac376dbe Swap order as changelog (apparently) comes before examples 2023-10-03 11:49:44 +01:00
Derick Rethans
7d81260767 Document new DatePeriod::createFromISO8601String method in PHP 8.3 2023-10-03 11:48:54 +01:00
Derick Rethans
71692b6f4c Add Date/Time exception documentation 2023-10-03 11:48:54 +01:00
George Peter Banyard
9154789dfc Fix DateInterval class markup
It was using a mixture of the new and old class markup causing a PhD assertion to fail
2023-09-23 14:34:20 +01:00
Máté Kocsis
5e9500ddad [skip-revcheck] Syncronize predefined constants with stubs - part 1 (#2739)
Preparation commit for syncing constants with stub.

This reformats the page, which is mainly just whitespace changes.
2023-09-04 23:37:50 +01:00
Máté Kocsis
14767af0f0 Use new class synopsis markup (#2611)
Follow-up on https://github.com/php/phd/pull/77
2023-08-30 12:28:30 +01:00
Derick Rethans
b66a0f5897 Testing new 'to-email' notification for commits 2023-08-29 16:23:34 +01:00
George Peter Banyard
ce5b00c8ad Disable PhD chunking for DateTime format page
Partial fix of GH-2674
2023-08-11 00:12:51 +01:00
Derick Rethans
dbbcd32d72 Integrate user note into the manual 2023-08-09 10:14:10 +01:00
Alexandre Daubois
57e27d2a76 Fix GH-2649: Document false return for mktime()/gmmktime() if timestamp does not fit in a PHP int (#2651) 2023-08-07 13:56:15 +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
Máté Kocsis
9eb4a46bba Use new class synopsis markup for interfaces (#2620) 2023-07-29 05:55:01 +01:00
Derick Rethans
b574a9a53b Fixed wording when checking out note #128761 2023-07-27 14:38:07 +01:00
Derick Rethans
fe6c97ad50 Integrate useful bit of note #128750 into documentation 2023-07-27 14:33:37 +01:00
Derick Rethans
06ea8c0a65 Fix whitespace 2023-07-26 17:15:41 +01:00
Derick Rethans
4d13f5e4b4 Fixed GH-2495: DateTime::createFromFormat now throws ValueError with NULL-bytes 2023-07-26 16:16:58 +01:00
Derick Rethans
bd1ae73f4a Fixed GH-2266: Add signature of date_interval_create_from_date_string to documentation page 2023-07-26 15:51:06 +01:00
Derick Rethans
b27b713b7b Fixed GH-1921: New warning in PHP 8.2 when setting date.timezone to an invalid value 2023-07-26 15:44:51 +01:00
Derick Rethans
a18b96cb51 Fix GH-1367: Meaning of "last $unit" is not properly documented 2023-07-26 15:37:57 +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