WordPress at a glance

calendar_week_mod() WP 1.0

Get number of days since the start of the week.

No Hooks.

Return

float. Days since the start of the week.

Usage

calendar_week_mod( $num );
$num(int) (required)
Number of day.

Code of calendar_week_mod: wp-includes/general-template.php VER 5.0.1

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

Related Functions

From tag: Supporting (helper utility auxiliary)

More from category: Date/Time

More from Template Tags: Main Functions

No comments
    Hello, !     Log In . Register