calendar_week_mod( int $num ): float

Gets number of days since the start of the week.


Parameters

$num int Required
Number of day.

Top ↑

Return

float Days since the start of the week.


Top ↑

Source

File: wp-includes/general-template.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.