You are here

public function DatexObject::__clone in Datex 7

Clones internal DateTime object when cloning instance of this class.

File

datex_api/datex_api_classes.inc, line 673
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 __clone() {
  $this->dateobj = clone $this->dateobj;
}