• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/classes/general/timeman.php
  • Класс: CTimeMan
  • Вызов: CTimeMan::GetTimeTS
static function GetTimeTS($datetime, $bTS = false)
{
	$ts = $bTS ? $datetime : MakeTimeStamp($datetime);

	if ($ts < 86400) // partial time
	{
		return $ts;
	}
	else
	{
		return ($ts + date('Z')) % 86400;
	}
}