You are here

public function DatexIntlCalendar::setDateLocale in Datex 8

Overrides DatexInterface::setDateLocale

File

src/Datex/DatexIntlCalendar.php, line 26

Class

DatexIntlCalendar

Namespace

Drupal\datex\Datex

Code

public function setDateLocale($y, $m, $d) {
  $y = intval($y);
  $m = intval($m);
  $d = intval($d);
  list($gy, $gm, $gd) = $this
    ->toGregorian($this->intlFormatter, $this->timezone, $y, $m, $d);
  parent::xSetDate($gy, $gm, $gd);
  return $this;
}