You are here

public function PersianDate::setDate in Persian Date for Drupal 8 8.4

Same name and namespace in other branches
  1. 8 src/Converter/PersianDate.php \Drupal\persian_date\Converter\PersianDate::setDate()

@inheritDoc

File

src/Converter/PersianDate.php, line 246

Class

PersianDate
This class hold time and represents it in Persian Date format.

Namespace

Drupal\persian_date\Converter

Code

public function setDate($year, $month, $day) {
  list($gy, $gm, $gd) = PersianDateConverter::jalali_to_gregorian($year, $month, $day);
  parent::setDate($gy, $gm, $gd);
}