周数
<h1>功能</h1>
<p>返回所给日期在这一年中的的周数。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>日期</td>
<td>【TDatetime】</td>
<td>当前日期时间(传入变量)</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>结果</td>
<td>【Integer】输出这一年的第几周</td>
<td>周数(创建变量)</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.该函数与【当前日期时间】函数搭配使用,可获取当前日期和时间。
2.将获取周数的变量传入【日志消息】函数中,即可在控制台显示出获取的周数。</p>
<h1>相关函数</h1>
<p>【当前日期时间】函数</p>
<h1>示例/演示</h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/9da8564049f424a3cc1fbebf9a86c850" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/e314765bef62602bc8c991952fd142cc" title="[组件[周数]_20210416.db">组件[周数]_20210416.db</a></p>