calendar_week_mod()
最后更新于:2021-11-25 20:25:42
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.
源文件
文件: gc-includes/general-template.php
function calendar_week_mod( $num ) {
$base = 7;
return ( $num - $base * floor( $num / $base ) );
}