<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.frenchtojd.php',
    1 => 'frenchtojd',
    2 => 'Converts a date from the French Republican Calendar to a Julian Day Count',
  ),
  'up' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar Functions',
  ),
  'prev' => 
  array (
    0 => 'function.easter-days.php',
    1 => 'easter_days',
  ),
  'next' => 
  array (
    0 => 'function.gregoriantojd.php',
    1 => 'gregoriantojd',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/calendar/functions/frenchtojd.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.frenchtojd" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">frenchtojd</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">frenchtojd</span> &mdash; <span class="dc-title">Converts a date from the French Republican Calendar to a Julian Day Count</span></p>

 </div>

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

  <p class="para rdfs-comment">
   Converts a date from the French Republican Calendar to a Julian
   Day Count.
  </p>
  <p class="para">
   These routines only convert dates in years 1 through 14
   (Gregorian dates 22 September 1792 through 22 September
   1806). This more than covers the period when the calendar was in
   use.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.frenchtojd-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">month</code></dt>
     <dd>
      <p class="para">
       The month as a number from 1 (for Vendémiaire) to 13 (for the period of 5-6 days at the end of each year)
      </p>
     </dd>
    
    
     <dt><code class="parameter">day</code></dt>
     <dd>
      <p class="para">
       The day as a number from 1 to 30
      </p>
     </dd>
    
    
     <dt><code class="parameter">year</code></dt>
     <dd>
      <p class="para">
       The year as a number between 1 and 14
      </p>
     </dd>
      
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.frenchtojd-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   The julian day for the given french revolution date as an integer.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.frenchtojd-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.jdtofrench.php" class="function" rel="rdfs-seeAlso">jdtofrench()</a> - Converts a Julian Day Count to the French Republican Calendar</span></li> 
    <li><span class="function"><a href="function.cal-to-jd.php" class="function" rel="rdfs-seeAlso">cal_to_jd()</a> - Converts from a supported calendar to Julian Day Count</span></li>
   </ul>
  </p>
 </div>

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