public function DatexObject::fixByGranularities in Datex 7.2
Helper method to make up for time difference if some granularites are missing.
File
- datex_api/
datex_api.class.inc, line 861 - Provides an API to work with dates.
Class
- DatexObject
- Base class for localized DateTime.
Code
public function fixByGranularities(array $granularities) {
$this
->setTimestamp($this
->getTimestamp() + $this
->fixMissingGranularities($granularities));
}