Date: 11/28/00
- Next message: Damien Seguy: "[PHP-DOC] cvs: phpdoc /fr/functions recode.xml"
- Previous message: Jani Taskinen: "Re: [PHP-DOC] /en/functions imap.xml"
- Next in thread: Damien Seguy: "[PHP-DOC] cvs: phpdoc /fr/functions datetime.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
dams Tue Nov 28 05:41:26 2000 EDT
Modified files:
/phpdoc/fr/functions datetime.xml
Log:
Added strtotime
Index: phpdoc/fr/functions/datetime.xml
diff -u phpdoc/fr/functions/datetime.xml:1.3 phpdoc/fr/functions/datetime.xml:1.4
--- phpdoc/fr/functions/datetime.xml:1.3 Mon Nov 20 09:33:41 2000
+++ phpdoc/fr/functions/datetime.xml Tue Nov 28 05:41:26 2000
@@ -924,6 +924,42 @@
</para>
</refsect1>
</refentry>
+ <refentry id="function.strtotime">
+ <refnamediv>
+ <refname>strtotime</refname>
+ <refpurpose>
+ Transforme un texte anglais en timestamp
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>strtotime</function></funcdef>
+ <paramdef>string <parameter>time</parameter></paramdef>
+ <paramdef>int
+ <parameter><optional>now</optional></parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>strtotime</function> essaye de lire une date au format
+ anglais dans la chaîne <parameter>time</parameter>,
+ et de la transformer en timestamp UNIX.
+ <example>
+ <title>Exemple avec <function>strtotime</function></title>
+ <programlisting role="php">
+// l'exemple n'est pas traduit, car cela ne fonctionne qu'en anglais
+echo strtotime ("now") . "\n";
+echo strtotime ("10 September 2000") . "\n";
+echo strtotime ("+1 day") . "\n";
+echo strtotime ("+1 week") . "\n";
+echo strtotime ("+1 week 2 days 4 hours 2 seconds") . "\n";
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ </refentry>
</reference>
<!-- Keep this comment at the end of the file
Local variables:
- Next message: Damien Seguy: "[PHP-DOC] cvs: phpdoc /fr/functions recode.xml"
- Previous message: Jani Taskinen: "Re: [PHP-DOC] /en/functions imap.xml"
- Next in thread: Damien Seguy: "[PHP-DOC] cvs: phpdoc /fr/functions datetime.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

