calendar_week_mod( int $num )
Get number of days since the start of the week.
描述
参数
- $num
-
(int)
(Required)
Number of day.
返回值
(float) Days since the start of the week.
源代码
File: wp-includes/general-template.php
function calendar_week_mod($num) {
$base = 7;
return ($num - $base*floor($num/$base));
}
更新日志
Version | 描述 |
---|---|
1.5.0 | Introduced. |
相关函数
Used By
-
wp-includes/general-template.php:
get_calendar()
User Contributed Notes
-
Skip to note content
You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note
Contributed by
Nilambar Sharma
Get number of days since the start of the week
echo calendar_week_mod( 10 );
Output:
3
你可能对这些文章感兴趣:
- wordpress函数gd_edit_image_support()用法示例
- wordpress函数funky_javascript_callback()用法示例
- wordpress函数funky_javascript_fix()用法示例
- wordpress函数gallery_shortcode()用法示例
- wordpress函数format_to_edit()用法示例
- wordpress函数format_to_post()用法示例
- wordpress函数form_option()用法示例
- wordpress函数force_ssl_login()用法示例
- wordpress函数format_code_lang()用法示例
- wordpress函数format_for_editor()用法示例
- wordpress函数force_ssl_content()用法示例
- wordpress函数flush_rewrite_rules()用法示例
- wordpress函数force_balance_tags()用法示例
- wordpress函数force_ssl_admin()用法示例
如有疑问,请前往问答中心反馈!
反馈