You are here

protected function DatexObject::checkSetTimezone in Datex 7.2

Check to see if given timezone is not NULL, Then if it's so, set it.

2 calls to DatexObject::checkSetTimezone()
DatexObject::setDatetime in datex_api/datex_api.class.inc
Set date-time of object instance by extracting timestamp from given date.
DatexObject::xsetDatetime in datex_api/datex_api.class.inc
Set date-time of object instance by extracting timestamp from given date.

File

datex_api/datex_api.class.inc, line 324
Provides an API to work with dates.

Class

DatexObject
Base class for localized DateTime.

Code

protected function checkSetTimezone($tz) {
  if ($tz) {
    $this
      ->setTimezone($tz);
  }
  return $this;
}