<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.calendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.unixtojd.php',
    1 => 'unixtojd',
    2 => 'Convertit un timestamp UNIX en un jour Julien',
  ),
  'up' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar Fonctions',
  ),
  'prev' => 
  array (
    0 => 'function.juliantojd.php',
    1 => 'juliantojd',
  ),
  'next' => 
  array (
    0 => 'book.datetime.php',
    1 => 'Date/Heure',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/calendar/functions/unixtojd.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.unixtojd" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">unixtojd</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">unixtojd</span> &mdash; <span class="dc-title">Convertit un timestamp UNIX en un jour Julien</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.unixtojd-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>unixtojd</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">$timestamp</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Retourne le jour Julien du timestamp UNIX <code class="parameter">timestamp</code>
   (nombre de secondes depuis le 1/1/1970), ou pour le jour courant si
   <code class="parameter">timestamp</code> est omis. De toute façon, l&#039;heure est 
   considérée comme l&#039;heure locale (pas UTC).
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.unixtojd-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">timestamp</code></dt>
     <dd>
      <p class="para">
       Un timestamp unix à convertir.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.unixtojd-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Un nombre de jours Julien, sous la forme d&#039;un <a href="language.types.integer.php" class="link">entier</a>,  ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.unixtojd-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">timestamp</code> est désormais nullable.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.unixtojd-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.jdtounix.php" class="function" rel="rdfs-seeAlso">jdtounix()</a> - Convertit un jour Julien en timestamp UNIX</span></li>
   </ul>
  </p>
 </div>

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