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

contributors($setup);

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

 </div>
 <div class="refsect1 description" id="refsect1-function.jewishtojd-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>jewishtojd</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">
   Although this function can handle dates all the way back to the year 1
   (3761 B.C.), such use may not be meaningful.  The Jewish calendar has
   been in use for several thousand years, but in the early days there was
   no formula to determine the start of a month. A new month was started
   when the new moon was first observed.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.jewishtojd-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 <code class="literal">1</code> to <code class="literal">13</code>,
       where <code class="literal">1</code> means <code class="literal">Tishri</code>,
       <code class="literal">13</code> means <code class="literal">Elul</code>, and
       <code class="literal">6</code> <em>and</em> <code class="literal">7</code> mean
       <code class="literal">Adar</code> in regular years, but <code class="literal">Adar I</code>
       and <code class="literal">Adar II</code>, respectively, in leap years.
      </p>
     </dd>
    
    
     <dt><code class="parameter">day</code></dt>
     <dd>
      <p class="para">
       The day as a number from <code class="literal">1</code> to <code class="literal">30</code>.
       If the month has only 29 days, the first day of the following month is
       assumed.
      </p>
     </dd>
    
    
     <dt><code class="parameter">year</code></dt>
     <dd>
      <p class="para">
       The year as a number between 1 and 9999
      </p>
     </dd>
      
   </dl>
  </p>
 </div>


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


 <div class="refsect1 seealso" id="refsect1-function.jewishtojd-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.jdtojewish.php" class="function" rel="rdfs-seeAlso">jdtojewish()</a> - Converts a Julian day count to a Jewish calendar date</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); ?>