calendar_week_mod( int $num )
Get number of days since the start of the week.
Parameters
- $num
-
(int) (Required) Number of day.
Return
(float) Days since the start of the week.
Source
File: wp-includes/general-template.php
function calendar_week_mod( $num ) { $base = 7; return ( $num - $base * floor( $num / $base ) ); }
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/calendar_week_mod