mirror of
https://github.com/php/doc-it.git
synced 2026-03-24 07:32:12 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314538 c90b9560-bf6c-de11-be94-00142212c4b1
61 lines
1.9 KiB
XML
61 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: n/a Maintainer: curcio_it Status: ready -->
|
|
<!-- last change to 'gmstrftime' in en/ tree in rev 1.2 -->
|
|
<refentry xml:id="function.gmstrftime" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>gmstrftime</refname>
|
|
<refpurpose>
|
|
Formatta una data/ora GMT/UTC secondo i parametri locali
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>gmstrftime</methodname>
|
|
<methodparam><type>string</type><parameter>formato</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Si comporta allo stesso modo della funzione <function>strftime</function> eccetto che
|
|
l'orario restituito è del Greenwich Mean Time (GMT). Ad esempio, quando si è
|
|
nell' Eastern Standard Time (GMT -0500), la prima linea sotto scrive
|
|
"Dec 31 1998 20:00:00", mentre la seconda scrive "Jan 01 1999
|
|
01:00:00".
|
|
<example>
|
|
<title>Esempio di <function>gmstrftime</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
setlocale ('LC_TIME', 'en_US');
|
|
echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
|
|
echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Guarda anche <function>strftime</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:"~/.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
|
|
-->
|