public function DatexObject::xdiff in Datex 7
Same as DateTime::diff().
File
- datex_api/
datex_api_classes.inc, line 805 - 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 xdiff(DateTime $datetime2, $absolute = FALSE) {
return $this->dateobj
->diff($datetime2, $absolute);
}