You are here

public function DatexGregorian::setDate in Datex 7.2

File

datex_api/DatexGregorian.inc, line 77
Gregorian for datex. Nothinf special, always calls DateTime methods to handle stuff.

Class

DatexGregorian
Default Gregorian for datex.

Code

public function setDate($y = NULL, $m = NULL, $d = NULL) {
  if ($y === NULL) {
    $y = date('Y');
  }
  if ($m === NULL) {
    $m = date('n');
  }
  if ($d === NULL) {
    $d = date('j');
  }
  $this
    ->xsetDate($y, $m, $d);
}