Skip to content

Commit

Permalink
Fixed bug #72586: Document that order of characters is important
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jun 2, 2022
1 parent fc1c548 commit 33dd071
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reference/datetime/datetimeimmutable/createfromformat.xml
Expand Up @@ -41,6 +41,14 @@
formatting options below. In most cases, the same letters as for the
<function>date</function> can be used.
</para>
<para>
The format is parsed from left to right, which means that in some
situations the order in which the format characters are present effects
the result. In in the case of <literal>z</literal> (the day of the year)
it is required that it is only used if a year has already been parsed,
for example through the <literal>Y</literal> or <literal>y</literal>
characters.
</para>
<para>
<table>
<title>The following characters are recognized in the
Expand Down

0 comments on commit 33dd071

Please sign in to comment.