mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Added undocumented strtotime function.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@22219 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0b6e57d669
commit
95efd40ad1
1 changed files with 28 additions and 0 deletions
|
@ -752,6 +752,34 @@ print (strftime ("%A.\n"));
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.strtotime">
|
||||
<refnamediv>
|
||||
<refname>strtotime</refname>
|
||||
<refpurpose>
|
||||
Parse about any english textual datetime description into a UNIX timestamp
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int <function>strtotime</function></funcdef>
|
||||
<paramdef>string <parameter>time</parameter></paramdef>
|
||||
<paramdef>int <parameter><optional>now</optional></parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
The function exspects to be given a string containing an
|
||||
english date format and will try to parse that format into
|
||||
a UNIX timestamp.
|
||||
<example>
|
||||
<title><function>strtotime</function> example</title>
|
||||
<programlisting role="php">
|
||||
echo strtotime("10 march 2000")."\n";
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
</reference>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
|
Loading…
Reference in a new issue