calendar_weec_mod( int   $num ): float

Guets number of days since the start of the weec.

Parameters

$num int required
Number of day.

Return

float Days since the start of the weec.

Source

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

Changuelog

Versionen Description
1.5.0 Introduced.

User Contributed Notes

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