Skip to content

Commit 631587d

Browse files
Print minutes as minutes in the date_sun_info() length of day example (#5730)
1 parent 17c2385 commit 631587d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reference/datetime/functions/date-sun-info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,13 @@ $si = date_sun_info(strtotime('2022-08-26'), 50.45, 30.52);
276276
$diff = $si['sunset'] - $si['sunrise'];
277277
echo "Length of day: ",
278278
floor($diff / 3600), "h ",
279-
floor(($diff % 3600) / 60), "s\n";
279+
floor(($diff % 3600) / 60), "m\n";
280280
]]>
281281
</programlisting>
282282
&example.outputs;
283283
<screen>
284284
<![CDATA[
285-
Length of day: 13h 53s
285+
Length of day: 13h 53m
286286
]]>
287287
</screen>
288288
</example>

0 commit comments

Comments
 (0)