public function DatexObject::setTimezone in Datex 7
Same name and namespace in other branches
- 7.2 datex_api/datex_api.class.inc \DatexObject::setTimezone()
Sets Time Zone of internal date object.
Accepts a DateTimeZone Object or an string representing a timezone.
1 call to DatexObject::setTimezone()
- DatexObject::setDate in datex_api/
datex_api_classes.inc - Sets date and time zone.
File
- datex_api/
datex_api_classes.inc, line 772 - 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 setTimezone($timezone) {
$timezone = DatexFormatter::getTzObject($timezone);
$this->dateobj
->setTimezone($timezone);
return $this;
}