wpseek.com
WordPress开发者和主题制作者的搜索引擎



calendar_week_mod › WordPress Function

Since1.5.0
已弃用n/a
calendar_week_mod ( $num )
参数:
  • (int) $num Number of day.
    Required: Yes
返回:
  • (float) Days since the start of the week.
定义在:
文档:

Gets number of days since the start of the week.



源码

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