wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



calendar_week_mod › WordPress Function

Depuis1.5.0
Dépréciéen/a
calendar_week_mod ( $num )
Paramètres:
  • (int) $num Number of day.
    Requis: Oui
Retourne:
  • (float) Days since the start of the week.
Défini(e) dans:
Codex:

Gets number of days since the start of the week.



Source

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