php-doc-en/reference/info/functions/getlastmod.xml
LEE Yun-young f89ca18be5 Sorry, mistaked. revert.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146724 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-18 11:47:08 +00:00

71 lines
1.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.2 -->
<refentry id="function.getlastmod">
<refnamediv>
<refname>getlastmod</refname>
<refpurpose>Gets time of last page modification</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>getlastmod</methodname>
<void/>
</methodsynopsis>
<para>
Returns the time of the last modification of the current
page. The value returned is a Unix timestamp, suitable for
feeding to <function>date</function>. Returns &false; on error.
</para>
<para>
<example>
<title><function>getlastmod</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
// outputs e.g. 'Last modified: March 04 1998 20:43:59.'
echo "Last modified: " . date ("F d Y H:i:s.", getlastmod());
?>
]]>
</programlisting>
</example>
</para>
<note>
<simpara>
If you're interested in getting the last modification time
of a different file, consider using <function>filemtime</function>.
</simpara>
</note>
<para>
See also
<function>date</function>,
<function>getmyuid</function>,
<function>getmygid</function>,
<function>get_current_user</function>,
<function>getmyinode</function>,
<function>getmypid</function>, and
<function>filemtime</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->