Gets number of days since the start of the week.
Parameters
$numintrequired- Number of day.
Source
function calendar_week_mod( $num ) {
$base = 7;
return ( $num - $base * floor( $num / $base ) );
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
Gets number of days since the start of the week.
$numintrequiredfunction calendar_week_mod( $num ) {
$base = 7;
return ( $num - $base * floor( $num / $base ) );
}
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Get number of days since the start of the week
Output: