You are here

public function DatexObject::format in Datex 7.2

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

Similar to DateTime::format().

If format is not given internal format string set by constructor will be used.

2 calls to DatexObject::format()
DatexObject::toArray in datex_api/datex_api.class.inc
Returns this date object granularities, put in an array.
DatexObject::__toString in datex_api/datex_api.class.inc
Magic Function toString.

File

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

Class

DatexObject
Base class for localized DateTime.

Code

public function format($format = NULL) {
  if ($format === NULL) {
    $format = $this->formatString;
  }
  return $this->useINTL ? $this
    ->formatINTL($format) : $this
    ->formatPHP($format);
}