Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 3913

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Converts a Julian day count to a Jewish calendar date</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.jdtogregorian.html">JDToGregorian</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.jdtojulian.html">JDToJulian</a></div>
 <div class="up"><a href="ref.calendar.html">Calendar Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.jdtojewish" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">jdtojewish</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">jdtojewish</span> &mdash; <span class="dc-title">Converts a Julian day count to a Jewish calendar date</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.jdtojewish-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>jdtojewish</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$juliandaycount</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$hebrew</code><span class="initializer"> = false</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$fl</code><span class="initializer"> = 0</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Converts a Julian Day Count to the Jewish Calendar.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.jdtojewish-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">julianday</code></em></span>
     <dd>

      <p class="para">
       A julian day number as integer
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">hebrew</code></em></span>
     <dd>

      <p class="para">
       If the <em><code class="parameter">hebrew</code></em> parameter is set to <strong><code>TRUE</code></strong>, the
       <em><code class="parameter">fl</code></em> parameter is used for Hebrew, string based,
       output format.  
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">fl</code></em></span>
     <dd>

      <p class="para">
       The available formats are:  
       <strong><code>CAL_JEWISH_ADD_ALAFIM_GERESH</code></strong>,
       <strong><code>CAL_JEWISH_ADD_ALAFIM</code></strong>,
       <strong><code>CAL_JEWISH_ADD_GERESHAYIM</code></strong>.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.jdtojewish-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   The jewish date as a string in the form &quot;month/day/year&quot;
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.jdtojewish-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.0.0</td>
       <td>
        The <em><code class="parameter">fl</code></em> parameter was added.
       </td>
      </tr>

      <tr>
       <td>4.3.0</td>
       <td>
        The <em><code class="parameter">hebrew</code></em> parameter was added.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.jdtojewish-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-2249">
    <p><strong>Example #1  <span class="function"><strong>jdtojewish()</strong></span> Example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">jdtojewish</span><span style="color: #007700">(</span><span style="color: #0000BB">gregoriantojd</span><span style="color: #007700">(</span><span style="color: #0000BB">10</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">8</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2002</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">CAL_JEWISH_ADD_GERESHAYIM&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">CAL_JEWISH_ADD_ALAFIM&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">CAL_JEWISH_ADD_ALAFIM_GERESH</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.jdtojewish-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.jewishtojd.html" class="function" rel="rdfs-seeAlso">jewishtojd()</a> - Converts a date in the Jewish Calendar to Julian Day Count</span></li> 
    <li class="member"> <span class="function"><a href="function.cal-from-jd.html" class="function" rel="rdfs-seeAlso">cal_from_jd()</a> - Converts from Julian Day Count to a supported calendar</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.jdtogregorian.html">JDToGregorian</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.jdtojulian.html">JDToJulian</a></div>
 <div class="up"><a href="ref.calendar.html">Calendar Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>