函数原型
calendar_week_mod( int $num ): float
函数描述
Gets 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 | Description |
|---|---|
| 1.5.0 | Introduced. |

