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