You are here

public static function DatexObjectUtils::date in Datex 7

See php date().

1 call to DatexObjectUtils::date()
datex_date in datex_api/datex_api.module
Alias of DatexFormatter::date().

File

datex_api/datex_api_classes.inc, line 1048
API and helper functions used by other datex modules.

Class

DatexObjectUtils
Utitilities to work with a DatexObject

Code

public static function date($format, $timestamp = NULL) {
  return DatexFormatter::format($timestamp === NULL ? time() : $timestamp, $format);
}