calendar_week_mod

函数


calendar_week_mod ( $num )
参数
  • (int)
    $num
    Number of day.
    Required:
返回值
  • (float) Days since the start of the week.
定义位置
  • wp-includes/general-template.php
    , line 2202
引入
1.5.0
弃用

Gets number of days since the start of the week.

function calendar_week_mod( $num ) {
	$base = 7;
	return ( $num - $base * floor( $num / $base ) );
}