<?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.cal-to-jd.php',
    1 => 'cal_to_jd',
    2 => 'Convertit un calendrier en nombre de jours Julien',
  ),
  'up' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar Fonctions',
  ),
  'prev' => 
  array (
    0 => 'function.cal-info.php',
    1 => 'cal_info',
  ),
  'next' => 
  array (
    0 => 'function.easter-date.php',
    1 => 'easter_date',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/calendar/functions/cal-to-jd.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.cal-to-jd" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">cal_to_jd</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">cal_to_jd</span> &mdash; <span class="dc-title">Convertit un calendrier en nombre de jours Julien</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.cal-to-jd-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>cal_to_jd</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$calendar</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$month</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$day</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$year</code></span><br>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>cal_to_jd()</strong></span> calcule le nombre de jours Julien
   pour une date, dans le calendrier <code class="parameter">calendar</code>.
   Les valeurs possibles pour <code class="parameter">calendar</code> sont
   <strong><code><a href="calendar.constants.php#constant.cal-gregorian">CAL_GREGORIAN</a></code></strong>,
   <strong><code><a href="calendar.constants.php#constant.cal-julian">CAL_JULIAN</a></code></strong>,
   <strong><code><a href="calendar.constants.php#constant.cal-jewish">CAL_JEWISH</a></code></strong> et
   <strong><code><a href="calendar.constants.php#constant.cal-french">CAL_FRENCH</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.cal-to-jd-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">calendar</code></dt>
     <dd>
      <p class="para">
       Calendrier à convertir. Un parmi
       <strong><code><a href="calendar.constants.php#constant.cal-gregorian">CAL_GREGORIAN</a></code></strong>,
       <strong><code><a href="calendar.constants.php#constant.cal-julian">CAL_JULIAN</a></code></strong>,
       <strong><code><a href="calendar.constants.php#constant.cal-jewish">CAL_JEWISH</a></code></strong> ou
       <strong><code><a href="calendar.constants.php#constant.cal-french">CAL_FRENCH</a></code></strong>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">month</code></dt>
     <dd>
      <p class="para">
       Le mois, sous la forme d&#039;un nombre. L&#039;intervalle valide
       dépend du calendrier <code class="parameter">calendar</code>
      </p>
     </dd>
    
    
     <dt><code class="parameter">day</code></dt>
     <dd>
      <p class="para">
       Le jour, sous la forme d&#039;un nombre. L&#039;intervalle valide
       dépend du calendrier <code class="parameter">calendar</code>
      </p>
     </dd>
    
    
     <dt><code class="parameter">year</code></dt>
     <dd>
      <p class="para">
       L&#039;année, sous la forme d&#039;un nombre. L&#039;intervalle valide
       dépend du calendrier <code class="parameter">calendar</code>
      </p>
     </dd>
      
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.cal-to-jd-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Le nombre de jours Julien.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.cal-to-jd-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.cal-from-jd.php" class="function" rel="rdfs-seeAlso">cal_from_jd()</a> - Convertit le nombre de jours Julien en un calendrier sp&eacute;cifique</span></li>
    <li><span class="function"><a href="function.frenchtojd.php" class="function" rel="rdfs-seeAlso">frenchtojd()</a> - Convertit une date du calendrier fran&ccedil;ais r&eacute;publicain en nombre
   de jours du calendrier Julien</span></li>
    <li><span class="function"><a href="function.gregoriantojd.php" class="function" rel="rdfs-seeAlso">gregoriantojd()</a> - Convertit une date gr&eacute;gorienne en nombre de jours du calendrier Julien</span></li>
    <li><span class="function"><a href="function.jewishtojd.php" class="function" rel="rdfs-seeAlso">jewishtojd()</a> - Convertit une date du calendrier juif en nombre de jours du calendrier julien</span></li>
    <li><span class="function"><a href="function.juliantojd.php" class="function" rel="rdfs-seeAlso">juliantojd()</a> - Convertit un jour du calendrier Julien en un nombre de jours du calendrier Julien</span></li>
    <li><span class="function"><a href="function.unixtojd.php" class="function" rel="rdfs-seeAlso">unixtojd()</a> - Convertit un timestamp UNIX en un jour Julien</span></li>
   </ul>
  </p>
 </div>

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