You are here

public function DatexObject::setTimestamp in Datex 7.2

Same name and namespace in other branches
  1. 7 datex_api/datex_api_classes.inc \DatexObject::setTimestamp()

Same as DateTime::setTimestamp but also resets the object.

4 calls to DatexObject::setTimestamp()
DatexObject::fixByGranularities in datex_api/datex_api.class.inc
Helper method to make up for time difference if some granularites are missing.
DatexObject::reset in datex_api/datex_api.class.inc
When new date or time is set on object, This method must be called.
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 264
Provides an API to work with dates.

Class

DatexObject
Base class for localized DateTime.

Code

public function setTimestamp($timestamp) {
  parent::setTimestamp($timestamp);
  $this
    ->reset();
}