• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/util.php
  • Класс: BitrixCalendarUtil
  • Вызов: Util::getTimestamp
static function getTimestamp($date, $round = true, $getTime = true)
{
	$timestamp = MakeTimeStamp($date, CSite::getDateFormat($getTime ? "FULL" : "SHORT"));

	return $round ? (round($timestamp / 60) * 60) : $timestamp;
}