• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar.php
  • Класс: CCalendar
  • Вызов: CCalendar::Date
static function Date($timestamp, $bTime = true, $bRound = true, $bCutSeconds = false)
{
	if ($bRound)
	{
		$timestamp = self::RoundTimestamp($timestamp);
	}

	$format = self::DFormat($bTime);
	if ($bTime && $bCutSeconds)
	{
		$format = str_replace(':s', '', $format);
	}

	return FormatDate($format, $timestamp);
}