mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 08:22:08 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@332741 c90b9560-bf6c-de11-be94-00142212c4b1
89 lines
2.4 KiB
XML
89 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: e30aeef1f5e4599e39eef7ab325806c238e6ec80 Maintainer: jpberdejo Status: ready -->
|
|
<refentry xml:id="function.getlastmod" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>getlastmod</refname>
|
|
<refpurpose>Obtiene la hora de la última modificación de la
|
|
página</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>getlastmod</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
Obtiene la hora de la última modificación del script principal de la ejecución.
|
|
</para>
|
|
<para>
|
|
Si está interesado en obtener la hora de la última modificación de un
|
|
archivo diferente, considere el uso de <function>filemtime</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Devuelve la hora de la última modificación de la página actual. El valor
|
|
devuelto es una marca de tiempo Unix, apropiada para ser pasada a
|
|
<function>date</function>. Devuelve &false; en caso de fallo.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>getlastmod</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// imprime p.ej. 'Ultima modificación: March 04 1998 20:43:59.'
|
|
echo "Ultima modificación: " . date ("F d Y H:i:s.", getlastmod());
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>date</function></member>
|
|
<member><function>getmyuid</function></member>
|
|
<member><function>getmygid</function></member>
|
|
<member><function>get_current_user</function></member>
|
|
<member><function>getmyinode</function></member>
|
|
<member><function>getmypid</function></member>
|
|
<member><function>filemtime</function></member>
|
|
</simplelist>
|
|
</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:"~/.phpdoc/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
|
|
-->
|