A WordPress-centric search engine for devs and theme authors



calendar_week_mod ›

Since1.5.0
Deprecatedn/a
calendar_week_mod ( $num )
Parameters:
  • (int) $num Number of day.
    Required: Yes
Returns:
  • (float) Days since the start of the week.
Defined at:
Codex:

Get number of days since the start of the week.



Source

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