public endOfDecade ( ) : static | ||
return | static |
public function endOfDecade()
{
$year = $this->year - $this->year % ChronosInterface::YEARS_PER_DECADE + ChronosInterface::YEARS_PER_DECADE - 1;
return $this->modify("last day of december {$year}, 23:59:59");
}