1
0
mirror of https://github.com/php/doc-en.git synced 2026-04-23 15:28:17 +02:00
Commit Graph

163 Commits

Author SHA1 Message Date
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
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
Derick Rethans 5c951013ca Incorporate useful information from notes (take #3) 2022-08-26 15:20:37 +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
Yoshinari Takaoka 255ec56b59 fixed wrong class reference. 2022-06-04 11:35:35 +09:00
Derick Rethans eeeb152d8a Added missing return values/parameters sections 2022-06-02 16:18:33 +01:00
Derick Rethans fc1c548fab Fixed bug #71108: date_create() is NOT an alias for 'new DateTime()' 2022-06-02 12:18:03 +01:00
Derick Rethans bbfdc364de Swap DateTime and DateTimeImmutable documention to push people towards using DateTimeImmutable 2022-06-02 11:44:54 +01:00
Derick Rethans 5267e13731 Fixed bug #67921: createFromFormat allows overflow for 'H' and 'G' so 25-99 rolls to next day 2022-05-13 15:27:53 +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
Máté Kocsis 3860b905cf [skip-revcheck] Remove unnecessary DateInterval, DatePeriod, DateTime and DateTimeZone method synopsis roles (#1258) 2021-12-26 12:08:30 +01:00
Christoph M. Becker d74736d803 Fix #73857: Y2038 issue with getTimestamp and setTimestamp, with alternative 2021-11-17 15:47:43 +01:00
Jakub Bouček e59e8d31d8 DateTime::createFromFormat - fix misleading epoch info
Closes GH-1019.
2021-10-13 16:36:58 +02:00
Christoph M. Becker aabe0e631b Fix typo (preceeded 26 preceded) 2021-10-01 15:54:02 +02:00
Christoph M. Becker a8f160fa97 Fix #62476: DateTime::createFromFormat z format incorrect wrt 29.02
While this is only a hard requirement as of PHP 8.0.10, without an
explicit year before the day-of-year, previous versions always assumed
on non leap year, as Derick pointed out in chat, so users need the
explicit year anyway for correct code.
2021-10-01 15:33:54 +02:00
Christoph M. Becker 659fbc4d32 Fix #894: DateTime::setTimezone never returns false 2021-09-03 18:33:10 +02:00
Peter Cowburn 2e8ef0a1bd hyphenate "object-oriented"
refs #846
2021-08-08 18:48:47 +01:00
Sergey Panteleev 70fe4159bf Fix some issues in datetime directory
Part of #658
2021-06-10 16:36:10 +03: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
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 e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Jakub Vrana c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +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 7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +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 6baae6d411 Fix #79181: Docpage miss 'v' format definition
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349094 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-02 17:22:24 +00:00
George Peter Banyard 0394c09fd5 Minor improvements to the createFromImmutable method.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347663 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-25 16:02:42 +00:00
Christoph Michael Becker 961158904b Add DateTime::createFromImmutable docs
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347532 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-03 12:40:11 +00:00
Christoph Michael Becker 2446428ef3 Fix changelog entry order
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345050 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-25 14:14:41 +00:00
Christoph Michael Becker eff0cbed30 Update wrt. PHP 7.1
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343118 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-21 09:28:11 +00:00
Andrea Faulds 5020f2f154 Update changelog for DateTime::setTime
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342854 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-14 21:53:59 +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
Derick Rethans 3787c3f437 Fixed docs for DateTIme constructor.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342817 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-09 10:41:12 +00:00
Andrey Gromov 2aaa257b45 Two minor typos fixed.
-- 
Provided by anonymous 80662 (peterkokot@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342335 c90b9560-bf6c-de11-be94-00142212c4b1
2017-04-15 08:52:18 +00:00
Christoph Michael Becker 8e821c7a9c Fix #73314: Documentation on createFromFormat does not match with date_default_timezone_get
$timezone's default is to complex to be expressed as initializer, so we omit it.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340470 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-14 09:06:55 +00:00
Christoph Michael Becker dd3d3bc95c Fix #70036: DateTime::createFromFormat/date_create_from_format return value not "formatted"
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340326 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-05 17:02:21 +00:00
Christoph Michael Becker 7fff0f94d5 Reverse merged revision(s) 339345-339344 from phpdoc/en/trunk/reference/datetime/datetime/createfromformat.xml:
Add proper markup
Improve format docs (provided by anon user)

There is no difference in createFromFormat whether 
you use a 'd' or a 'j' for example. Both of them allow leading zeroes, 
or not.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339932 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-23 13:17:15 +00:00
Christoph Michael Becker a6629a0fad Add proper markup
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339931 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-23 11:36:45 +00:00
Christoph Michael Becker 246eedd738 Improve format docs (provided by anon user)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339929 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-23 11:29:02 +00:00
Christoph Michael Becker b824148e7a Fix #64588: Missing Documentation of Escape Sequence
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339343 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-14 11:59:53 +00:00
Christoph Michael Becker 1c44bc0f84 added missing defaults (by Michael Hoppes)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338509 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-15 18:12:26 +00:00
Christoph Michael Becker ddfb9f8974 added changelog (fixes #69499)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337743 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-04 00:01:24 +00:00
Peter Cowburn 8381bcc9f8 Fix typo: change "characracters" to "characters". (patch by anonymous contributor)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336518 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-13 14:48:52 +00:00
Adam Harvey b5a9655597 Include the range for two digit years in DateTime::createFromFormat().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333741 c90b9560-bf6c-de11-be94-00142212c4b1
2014-06-09 17:29:49 +00:00
Peter Cowburn 9be1e7786f typo
Patch by Rafael Santos

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333215 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-29 21:56:33 +00:00