<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intltimezone.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'intltimezone.getianaid.php',
    1 => 'IntlTimeZone::getIanaID',
    2 => 'Translate a timezone identifier to its IANA equivalent',
  ),
  'up' => 
  array (
    0 => 'class.intltimezone.php',
    1 => 'IntlTimeZone',
  ),
  'prev' => 
  array (
    0 => 'intltimezone.getgmt.php',
    1 => 'IntlTimeZone::getGMT',
  ),
  'next' => 
  array (
    0 => 'intltimezone.getid.php',
    1 => 'IntlTimeZone::getID',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intltimezone/getianaid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intltimezone.getianaid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlTimeZone::getIanaID</h1>
  <h1 class="refname">intltz_get_iana_id</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">IntlTimeZone::getIanaID</span> -- <span class="refname">intltz_get_iana_id</span> &mdash; <span class="dc-title">Translate a timezone identifier to its IANA equivalent</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intltimezone.getianaid-description">
  <h3 class="title">说明</h3>
  <p class="simpara">面向对象风格 (method):</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="modifier">function</span> <span class="methodname"><strong>IntlTimeZone::getIanaID</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$timezoneId</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">过程化风格:</p>
  <div class="methodsynopsis dc-description"><span class="modifier">function</span> <span class="methodname"><strong>intltz_get_iana_id</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$timezoneId</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   Translates a timezone identifier to its IANA equivalent. For example,
   <code class="literal">&quot;GMT&quot;</code> returns <code class="literal">&quot;Etc/GMT&quot;</code>, and
   <code class="literal">&quot;US/Eastern&quot;</code> returns <code class="literal">&quot;America/New_York&quot;</code>.
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    This function requires ICU version &gt;= 74.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-intltimezone.getianaid-parameters">
  <h3 class="title">参数</h3>
 <dl>
  
   <dt><code class="parameter">timezoneId</code></dt>
   <dd>
    <span class="simpara">
     The timezone identifier to translate.
    </span>
   </dd>
  
 </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intltimezone.getianaid-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Returns the IANA timezone identifier as a <span class="type"><a href="language.types.string.php" class="type string">string</a></span>, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-intltimezone.getianaid-seealso">
  <h3 class="title">参见</h3>
 <ul class="simplelist">
  <li><span class="function"><a href="intltimezone.getidforwindowsid.php" class="function" rel="rdfs-seeAlso">intltz_get_id_for_windows_id()</a> - Translate a Windows timezone into a system timezone</span></li>
  <li><span class="function"><a href="intltimezone.getwindowsid.php" class="function" rel="rdfs-seeAlso">intltz_get_windows_id()</a> - Translate a system timezone into a Windows timezone</span></li>
  <li><span class="function"><a href="intltimezone.createtimezone.php" class="function" rel="rdfs-seeAlso">intltz_create_time_zone()</a> - Create a timezone object for the given ID</span></li>
 </ul>
 </div>


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