svn: /phpdoc/ja/trunk/reference/datetime/functions/ gmmktime.xml mktime.xml
[email protected] (Yoshinari Takaoka) Sun, 20 Dec 2020 23:31:44 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
mumumu Sun, 20 Dec 2020 23:31:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=352148
Log:
Calling (gm)mktime() without arguments is deprecated as of PHP 7.0.0
We drop the duplicate notes section, but instead of moving the information down
to the end of the page, we add it to the function description.
Changed paths:
U phpdoc/ja/trunk/reference/datetime/functions/gmmktime.xml
U phpdoc/ja/trunk/reference/datetime/functions/mktime.xml
Modified: phpdoc/ja/trunk/reference/datetime/functions/gmmktime.xml
===================================================================
--- phpdoc/ja/trunk/reference/datetime/functions/gmmktime.xml 2020-12-20 23:25:29 UTC (rev 352147)
+++ phpdoc/ja/trunk/reference/datetime/functions/gmmktime.xml 2020-12-20 23:31:44 UTC (rev 352148)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351133 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 352144 Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa,shimooka,mumumu -->
<refentry xml:id="function.gmmktime" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -30,6 +30,10 @@
引数は右から順に省略することができます。
省略された引数は、GMT の日付と時刻に従って、現在の値にセットされます。
</para>
+ <simpara>
+ 引数なしで <function>gmmktime</function> を呼び出すことは推奨されません。
+ 現在のタイムスタンプを取得する目的には、<function>time</function> が使えます。
+ </simpara>
</refsect1>
<refsect1 role="parameters">
Modified: phpdoc/ja/trunk/reference/datetime/functions/mktime.xml
===================================================================
--- phpdoc/ja/trunk/reference/datetime/functions/mktime.xml 2020-12-20 23:25:29 UTC (rev 352147)
+++ phpdoc/ja/trunk/reference/datetime/functions/mktime.xml 2020-12-20 23:31:44 UTC (rev 352148)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351730 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 352144 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka,mumumu -->
<refentry xml:id="function.mktime" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -28,19 +28,12 @@
引数は右から順に省略することができます。省略された引数は、
ローカルの日付と時刻に従って、現在の値にセットされます。
</para>
+ <simpara>
+ 引数なしで <function>mktime</function> を呼び出すことは推奨されません。
+ 現在のタイムスタンプを取得する目的には、<function>time</function> が使えます。
+ </simpara>
</refsect1>
- <refsect1 role="notes">
- &reftitle.notes;
- <note>
- <para>
- PHP 5.1 以降、引数なしでコールすると <function>mktime</function>
- は <constant>E_STRICT</constant> notice を発行するようになりました。かわりに
- <function>time</function> 関数を使用しましょう。
- </para>
- </note>
- </refsect1>
-
<refsect1 role="parameters">
&reftitle.parameters;
<para>