calendar_week_mod( int $num )
Get number of days since the start of the week.
Description Description
Parameters Parameters
- $num
-
(int) (Required) Number of day.
Return Return
(float) Days since the start of the week.
Source Source
File: wp-includes/general-template.php
function calendar_week_mod( $num ) {
$base = 7;
return ( $num - $base * floor( $num / $base ) );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Get number of days since the start of the week
Output: