private function Date::weekOfYear in PersianTools 7
returns the week of the year @access private
Return value
int
1 call to Date::weekOfYear()
- Date::format in includes/
Date.php - this is a clone of the internal php function date() with a few exceptions in the acceptable parameters
File
- includes/
Date.php, line 249
Class
Namespace
ShamsiCode
private function weekOfYear() {
$x = (7 - $this
->dayOfWeek($this->_year, 1)) % 7;
$z = $this->_dayOfYear - $x;
return abs(ceil($z / 7));
}