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