mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
107 lines
2.7 KiB
HTML
107 lines
2.7 KiB
HTML
<!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>返回星期的日期</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.jddayofweek" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">JDDayOfWeek</h1>
|
|
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">JDDayOfWeek</span> — <span class="dc-title">返回星期的日期</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.jddayofweek-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>jddayofweek</strong></span>
|
|
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$julianday</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = CAL_DOW_DAYNO</span></span>
|
|
] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
返回星期的日期,根据模式不同可能是字符串或是整数。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.jddayofweek-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">julianday</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
一个julian天数。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">mode</code></dt>
|
|
|
|
<dd>
|
|
|
|
<table class="doctable table">
|
|
<caption><strong>历法星期模式</strong></caption>
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>Mode</th>
|
|
<th>Meaning</th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="tbody">
|
|
<tr>
|
|
<td>0 (默认)</td>
|
|
<td>
|
|
返回数字形式(0=Sunday, 1=Monday, etc)
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>1</td>
|
|
<td>
|
|
返回字符串形式
|
|
(English-Gregorian)
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>2</td>
|
|
<td>
|
|
返回缩写形式的字符串
|
|
(English-Gregorian)
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.jddayofweek-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
数字或字符串形式的星期数。
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |