strtotime: parameter time behaves according to gnu date syntax, added link to gnu man page.

Also, there are a few additional valid inputs, document them at a later date :)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64878 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2001-12-13 00:44:47 +00:00
parent 229da4ff5a
commit 7cd0ec6602

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.56 $ -->
<!-- $Revision: 1.57 $ -->
<reference id="ref.datetime">
<title>Date and Time functions</title>
<titleabbrev>Date/time</titleabbrev>
@ -1111,10 +1111,19 @@ print (strftime ("%A.\n"));
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
<simpara>
The function expects to be given a string containing an English
date format and will try to parse that format into a UNIX
timestamp. Upon failure, <literal>-1</literal> is returned.
</simpara>
<simpara>
Since <function>strtotime</function> behaves according to GNU
date syntax, have a look at the GNU manual page titled
<ulink url="&url.gnu.man.date-input;">Date Input Formats</ulink>.
Described there is valid syntax for the <parameter>time</parameter>
parameter.
</simpara>
<para>
<example>
<title><function>strtotime</function> examples</title>
<programlisting role="php">