public function Carbon::endOfDecade in Persian Date for Drupal 8 8.4
Resets the date to end of the decade and time to 23:59:59
Return value
static
File
- src/
Library/ Carbon/ Carbon.php, line 2977
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function endOfDecade() {
$year = $this->year - $this->year % static::YEARS_PER_DECADE + static::YEARS_PER_DECADE - 1;
return $this
->setDateTime($year, 12, 31, 23, 59, 59);
}