• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskwebservice.php
  • Класс: CTasksWebService
  • Вызов: CTasksWebService::__makeDateTime
function __makeDateTime($ts = null, $stripTime = false)
{
	if (null === $ts)
		$ts = time();

	if ($stripTime)
		$rc = date('Y-m-d', $ts) . 'T00:00:00Z';
	else
		$rc = date('Y-m-d', $ts) .'T' . date('H:i:s', $ts) . 'Z';

	return ($rc);
}