<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.localtime.php',
    1 => 'localtime',
    2 => 'Yerel zamanı getirir',
  ),
  'up' => 
  array (
    0 => 'ref.datetime.php',
    1 => 'Tarih ve Zaman İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.idate.php',
    1 => 'idate',
  ),
  'next' => 
  array (
    0 => 'function.microtime.php',
    1 => 'microtime',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/datetime/functions/localtime.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.localtime" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">localtime</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">localtime</span> &mdash; <span class="dc-title">Yerel zamanı getirir</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.localtime-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>localtime</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$zaman_damgası</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$ilişkisel</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>localtime()</strong></span> işlevi, standart C işlev çağrısı olan localtime tarafından döndürülen yapıya eşdeğer bir dizi döndürür.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.localtime-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
<dt><code class="parameter">zaman_damgası</code></dt><dd><p class="para">
Seçimlik <code class="parameter">zaman_damgası</code> bağımsız değişkeni
<span class="type"><a href="language.types.integer.php" class="type int">int</a></span> türünde bir Unix zaman damgası olup belirtilmediği
takdirde veya <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> ise yerel zaman kullanılır. Başka bir deyişle,
<span class="function"><a href="function.time.php" class="function">time()</a></span> işlevinden dönen değer öntanımlıdır.</p>
</dd>
    
     <dt><code class="parameter">ilişkisel</code></dt>
     <dd>
      <p class="para">
       İşlevin sıradan indisli bir dizi mi yoksa ilişkisel bir dizi mi
       döndüreceğini belirler.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.localtime-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Eğer <code class="parameter">ilişkisel</code> bağımsız değişkenine <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> atanmış
   ya da bağımsız değişken atlanmışsa, sayısal indisli bir dizi döner.
   Eğer bağımsız değişken <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> olarak ayarlanmışsa <span class="function"><strong>localtime()</strong></span>
   işlevi, standart C işlevi localtime tarafından döndürülen yapının
   elemanlarını içeren ilişkisel bir dizi döndürür.
   Bu ilişkisel dizinin anahtarları şunlardır:
  </p>
  <p class="para">
   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
      &quot;tm_sec&quot; - saniye, <code class="literal">0</code> - <code class="literal">59</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_min&quot; - dakika, <code class="literal">0</code> - <code class="literal">59</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_hour&quot; - saat, <code class="literal">0</code> - <code class="literal">23</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_mday&quot; - ayın günleri, <code class="literal">1</code> - <code class="literal">31</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_mon&quot; - yılın ayları, Ocak için 0&#039;dan başlar
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_year&quot; - Yıllar,, <code class="literal">0</code> (Ocak) - <code class="literal">11</code> (Aralık)
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_wday&quot; - Haftanın günleri, <code class="literal">0</code> (Paz) - <code class="literal">6</code> (Cts)
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_yday&quot; - Yılın günleri, <code class="literal">0</code> - <code class="literal">365</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      &quot;tm_isdst&quot; - Yaz saati etkin mi?
     </span>
     <span class="simpara">
      Evet ise pozitif, hayır ise <code class="literal">0</code>, bilinmiyorsa
      negatiftir.
      </span>
    </li>
   </ul>
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.localtime-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">Bir tarih/zaman işlevine
yapılan her çağrı eğer zaman dilimi ayarı geçerli değilse bir
<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> üretir. Ayrıca bakınız:
<span class="function"><a href="function.date-default-timezone-set.php" class="function">date_default_timezone_set()</a></span></p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.localtime-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        <code class="parameter">zaman_damgası</code> artık <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> olabiliyor.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.localtime-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - <span class="function"><strong>localtime()</strong></span> örneği</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$localtime </span><span style="color: #007700">= </span><span style="color: #0000BB">localtime</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$localtime_assoc </span><span style="color: #007700">= </span><span style="color: #0000BB">localtime</span><span style="color: #007700">(</span><span style="color: #0000BB">time</span><span style="color: #007700">(), </span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$localtime</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$localtime_assoc</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; 24
    [1] =&gt; 3
    [2] =&gt; 19
    [3] =&gt; 3
    [4] =&gt; 3
    [5] =&gt; 105
    [6] =&gt; 0
    [7] =&gt; 92
    [8] =&gt; 1
)

Array
(
    [tm_sec] =&gt; 24
    [tm_min] =&gt; 3
    [tm_hour] =&gt; 19
    [tm_mday] =&gt; 3
    [tm_mon] =&gt; 3
    [tm_year] =&gt; 105
    [tm_wday] =&gt; 0
    [tm_yday] =&gt; 92
    [tm_isdst] =&gt; 1
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.localtime-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.getdate.php" class="function" rel="rdfs-seeAlso">getdate()</a> - Tarih/zaman bilgisi getirir</span></li>
   </ul>
  </p>
 </div>

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