philip Wed Dec 12 19:44:47 2001 EDT
Modified files:
/phpdoc/en/functions datetime.xml
Log:
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 :)
Index: phpdoc/en/functions/datetime.xml
diff -u phpdoc/en/functions/datetime.xml:1.56 phpdoc/en/functions/datetime.xml:1.57
--- phpdoc/en/functions/datetime.xml:1.56 Wed Dec 12 15:46:41 2001
+++ phpdoc/en/functions/datetime.xml Wed Dec 12 19:44:47 2001
@@ -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 @@
</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">