cvs: phpdoc /en/reference/spl/splfileinfo getctime.xml

From: Date: Fri, 14 Nov 2008 19:51:08 +0000
Subject: cvs: phpdoc /en/reference/spl/splfileinfo getctime.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2534@lists.php.net to get a copy of this message
saltybeagle Fri Nov 14 19:51:08 2008 UTC Modified files: /phpdoc/en/reference/spl/splfileinfo getctime.xml Log: Document SplFileInfo::getCTime() http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfileinfo/getctime.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/spl/splfileinfo/getctime.xml diff -u phpdoc/en/reference/spl/splfileinfo/getctime.xml:1.1 phpdoc/en/reference/spl/splfileinfo/getctime.xml:1.2 --- phpdoc/en/reference/spl/splfileinfo/getctime.xml:1.1 Fri Nov 14 18:38:21 2008 +++ phpdoc/en/reference/spl/splfileinfo/getctime.xml Fri Nov 14 19:51:08 2008 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="splfileinfo.getctime" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>SplFileInfo::getCTime</refname> - <refpurpose>The getCTime purpose</refpurpose> + <refpurpose>Gets the last change time</refpurpose> </refnamediv> <refsect1 role="description"> @@ -14,7 +14,7 @@ <void /> </methodsynopsis> <para> - The method description goes here. + Returns the time the file was last changed. The time returned is a UNIX timestamp. </para> </refsect1> @@ -26,7 +26,14 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... + The last change time, in a UNIX timestamp. + </para> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + Throws <methodname>RunTimeException</methodname> on error. </para> </refsect1> @@ -38,14 +45,15 @@ <programlisting role="php"> <![CDATA[ <?php -/* ... */ +$info = new SplFileInfo(__FILE__); +echo 'Last changed at ' . date('g:i a', $info->getCTime()); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ -... +Last changed at 1:49 pm ]]> </screen> </example> @@ -56,7 +64,7 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><function>filectime</function></member> </simplelist> </para> </refsect1>

« previous php.doc.cvs (#2534) next »