public function PersianDate::setDate in Persian Date for Drupal 8 8
Same name and namespace in other branches
- 8.4 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\ConverterCode
public function setDate($year, $month, $day) {
list($gy, $gm, $gd) = PersianDateConverter::jalali_to_gregorian($year, $month, $day);
parent::setDate($gy, $gm, $gd);
}