You are here

protected function DatexObject::setConvert in Datex 7.2

Call extended class convert and set converted date on object instance,

2 calls to DatexObject::setConvert()
DatexObject::formatPHP in datex_api/datex_api.class.inc
Use php to format date
DatexObject::reset in datex_api/datex_api.class.inc
When new date or time is set on object, This method must be called.

File

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

Class

DatexObject
Base class for localized DateTime.

Code

protected function setConvert() {
  list($this->year, $this->month, $this->day, $this->hour, $this->minute, $this->second, $this->dayOfYear, $this->dayOfWeek) = $this
    ->convert($this
    ->xformat('U'), $this->tzOffset);
  return $this;
}