On this page
calendar_week_mod( int $num ): float
Gets number of days since the start of the week.
Parameters
$numint Required-
Number of day.
Return
float Days since the start of the week.
Source
File: wp-includes/general-template.php. View all references
function calendar_week_mod( $num ) {
$base = 7;
return ( $num - $base * floor( $num / $base ) );
}
Related
Used By
| Used By | Description |
|---|---|
| get_calendar() wp-includes/general-template.php | Displays calendar with days that have posts as links. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/calendar_week_mod