Метод formatDateTime

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 266–293
~/bitrix/modulestasks/lib/util/ui.php

Исходный код

PHP
public static

Сигнатура метода

public static function formatDateTime($stamp, $format = false)

Описание

Converts timestamp into the time string in site format without any additional decorations todo: make this function even smarter: detect if $stamp is a unix timestamp or a date string todo: in the last case, provide $fromFormat argument

Параметры

2
Имя Тип По умолчанию Флаги
$stamp - -
-
$format - false
-