📄 function.juliantojd.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Converts a Julian Calendar date to Julian Day Count</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.jewishtojd.html">JewishToJD</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.unixtojd.html">unixtojd</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.juliantojd" class="refentry"> <div class="refnamediv"> <h1 class="refname">JulianToJD</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">JulianToJD</span> — <span class="dc-title">Converts a Julian Calendar date to Julian Day Count</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><b>juliantojd</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$month</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$day</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$year</tt></span> )</div> <p class="para rdfs-comment"> Valid Range for Julian Calendar 4713 B.C. to 9999 A.D. </p> <p class="para"> Although this function can handle dates all the way back to 4713 B.C., such use may not be meaningful. The calendar was created in 46 B.C., but the details did not stabilize until at least 8 A.D., and perhaps as late at the 4th century. Also, the beginning of a year varied from one culture to another - not all accepted January as the first month. </p> <div class="caution"><b class="caution">Caution</b> <p class="para"> Remember, the current calendar system being used worldwide is the Gregorian calendar. <a href="function.gregoriantojd.html" class="function">gregoriantojd()</a> can be used to convert such dates to their Julian Day count. </p> </div> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">month</tt></i></span> <dd> <p class="para"> The month as a number from 1 (for January) to 12 (for December) </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">day</tt></i></span> <dd> <p class="para"> The day as a number from 1 to 31 </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">year</tt></i></span> <dd> <p class="para"> The year as a number between -4713 and 9999 </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The julian day for the given julian date as an integer. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.jdtojulian.html" class="function" rel="rdfs-seeAlso">jdtojulian()</a></li> <li class="member"><a href="function.cal-to-jd.html" class="function" rel="rdfs-seeAlso">cal_to_jd()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.jewishtojd.html">JewishToJD</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.unixtojd.html">unixtojd</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -