mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Some nits to datetime docs
This commit is contained in:
parent
c2674e232e
commit
c613965f9a
1 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@
|
|||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>strtotime</function> returns false if any number is outside of
|
||||
<function>strtotime</function> returns &false; if any number is outside of
|
||||
the ranges, and <function>DateTimeImmutable::__construct</function> throws
|
||||
an exception.
|
||||
</simpara>
|
||||
|
@ -63,7 +63,7 @@
|
|||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
There is an additional check if you pass in an invalid date:
|
||||
There is an additional check if an invalid date is provided:
|
||||
<example>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -87,9 +87,9 @@ array(1) {
|
|||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
It is already possible to handle the edge cases, but then you need to use
|
||||
<function>DateTimeImmutable::createFromFormat</function>, and
|
||||
supply the right format.
|
||||
It is already possible to handle the edge cases, but then
|
||||
<function>DateTimeImmutable::createFromFormat</function> must be used
|
||||
while supplying the correct format.
|
||||
<example>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -1000,7 +1000,7 @@ class DateTime#1 (3) {
|
|||
the referent is the current system timestamp. However, if used in
|
||||
<function>DateTime::modify</function> or
|
||||
<function>DateTimeImmutable::modify</function>, the referent is the object
|
||||
on which the modify() method is called.
|
||||
on which the <literal>modify()</literal> method is called.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
|
|
Loading…
Reference in a new issue