<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.datetime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.gmstrftime.php',
    1 => 'gmstrftime',
    2 => 'Formatta una data/ora GMT/UTC secondo i parametri locali',
  ),
  'up' => 
  array (
    0 => 'ref.datetime.php',
    1 => 'Date/Time Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.gmmktime.php',
    1 => 'gmmktime',
  ),
  'next' => 
  array (
    0 => 'function.idate.php',
    1 => 'idate',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/datetime/functions/gmstrftime.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.gmstrftime" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">gmstrftime</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">gmstrftime</span> &mdash; <span class="dc-title">
     Formatta una data/ora GMT/UTC secondo i parametri locali
    </span></p>

   </div>
   <div class="refsect1 unknown-502" id="refsect1-function.gmstrftime-unknown-502">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>gmstrftime</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$formato</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timestamp</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    <p class="para rdfs-comment">
     Si comporta allo stesso modo della funzione <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> eccetto che
     l&#039;orario restituito è del Greenwich Mean Time (GMT). Ad esempio, quando si è
     nell&#039; Eastern Standard Time (GMT -0500), la prima linea sotto scrive
     &quot;Dec 31 1998 20:00:00&quot;, mentre la seconda scrive &quot;Jan 01 1999
     01:00:00&quot;.
     <div class="example" id="example-1">
      <p><strong>Example #1 Esempio di <span class="function"><strong>gmstrftime()</strong></span></strong></p>
      <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000">setlocale ('LC_TIME', 'en_US');<br />echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";<br />echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";</span></code></div>
      </div>

     </div>
    </p>
    <p class="para">
     Guarda anche <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>