You are here

public function DatexObject::xsetDate in Datex 7

Same name and namespace in other branches
  1. 7.2 datex_api/datex_api.class.inc \DatexObject::xsetDate()

Same as DateTime::setDate().

1 call to DatexObject::xsetDate()
DatexObject::setDate in datex_api/datex_api_classes.inc
Sets date and time zone.

File

datex_api/datex_api_classes.inc, line 826
API and helper functions used by other datex modules.

Class

DatexObject
This class is Jalali equivilant of php DateTime. It also has some functionallity from object defiend in Drupal's date module DateObject.

Code

public function xsetDate($year, $month, $day) {
  return $this->dateobj
    ->setDate($year, $month, $day);
}