1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-26 16:52:25 +01:00

Fix GH-1164: strftime is deprecated since PHP 8.1

This commit is contained in:
Christoph M. Becker
2021-11-29 17:34:32 +01:00
parent 75c0d66b7c
commit e8d10b3f15
3 changed files with 16 additions and 2 deletions

View File

@@ -164,15 +164,21 @@ $arr[] = 2;
<title>Date</title>
<para>
The <function>date_sunrise</function> and <function>date_sunset</function>
<function>date_sunrise</function> and <function>date_sunset</function>
have been deprecated in favor of <function>date_sun_info</function>.
</para>
<para>
The <function>strptime</function> has been deprecated.
<function>strptime</function> has been deprecated.
Use <function>date_parse_from_format</function> instead (for locale-independent parsing),
or <methodname>IntlDateFormatter::parse</methodname> (for locale-dependent parsing).
</para>
<para>
<function>strftime</function> and <function>gmstrftime</function> have been deprecated.
Use <function>date</function> instead (for locale-independent parsing),
or <methodname>IntlDateFormatter::format</methodname> (for locale-dependent parsing).
</para>
</sect2>
<sect2 xml:id="migration81.deprecated.filter">

View File

@@ -6,6 +6,10 @@
<refpurpose>Format a GMT/UTC time/date according to locale settings</refpurpose>
</refnamediv>
<refsynopsisdiv>
&warn.deprecated.function-8-1-0;
</refsynopsisdiv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>

View File

@@ -6,6 +6,10 @@
<refpurpose>Format a local time/date according to locale settings</refpurpose>
</refnamediv>
<refsynopsisdiv>
&warn.deprecated.function-8-1-0;
</refsynopsisdiv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>