- Модуль: timeman
- Путь к файлу: ~/bitrix/modules/timeman/lib/rest.php
- Класс: BitrixTimemanRest
- Вызов: Rest::formatTimeToISO
static function formatTimeToISO($ts, $offset)
{
$offsetSign = $offset >= 0 ? '+' : '-';
return static::formatTime($ts)
.$offsetSign
.str_pad(abs(intval($offset / 3600)), 2, '0', STR_PAD_LEFT).':'.str_pad(abs(intval($offset % 3600 / 60)), 2, '0', STR_PAD_LEFT);
}