mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
229da4ff5a
commit
7cd0ec6602
1 changed files with 11 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue