protected static function getWeekOfYear(JalaliDate $date) { return (string) $date->getWeekOfYear(); }
public function createJalaliDate($includeTime) { $y = $this->year ?: static::$defaultCentury + $this->yearOfCentury; if (!$this->hasNoMonth() && $this->day) { $date = new JalaliDate($y, $this->getMonth(), $this->day); } else { $firstDay = new JalaliDate($y, 1, 1); $date = JalaliDate::fromInteger($firstDay->toInteger() - 1 + $this->dayOfYear); } if ($includeTime) { return new JDateTime($date->getYear(), $date->getMonth(), $date->getDay(), $this->hour, $this->minute, $this->second); } return $date; }