You are here

public function DatexObject::setDate in Datex 7.2

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

Same as DateTime::setDate().

File

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

Class

DatexObject
Base class for localized DateTime.

Code

public function setDate($year = NULL, $month = NULL, $day = NULL) {
  list($year, $month, $day) = $this
    ->toGregorian($year, $month, $day);
  $this
    ->xsetDate($year, $month, $day);
  return $this;
}