35 protected static function formatDateTime($stamp, ?
string $format =
null): string
41 (defined(
'FORMAT_DATE') && $format === FORMAT_DATE)
42 || (defined(
'FORMAT_DATETIME') && $format === FORMAT_DATETIME))
44 $format = \CDatabase::dateFormatToPHP($format);
48 $default = static::getDateTimeFormat();
49 if ($format ===
false)
58 return date($format, $stamp);
61 return FormatDate($format, $stamp);