CBPCalc::getCalendarWorkTime: Bitrix method

      
<?php 
//  CBPCalc :: getCalendarWorkTime()
//  /dist/bitrix/modules/bizproc/classes/general/calc.php:1014

    
private function getCalendarWorkTime()
    {
        if (static::
$startWorkDay === null)
        {
            
$startSeconds 0;
            
$endSeconds 24 3600 1;

            
$calendarSettings CCalendar::GetSettings();
            if (!empty(
$calendarSettings['work_time_start']))
            {
                
$time explode('.'$calendarSettings['work_time_start']);
                
$startSeconds $time[0] * 3600;
                if (!empty(
$time[1]))
                    
$startSeconds += $time[1] * 60;
            }

            if (!empty(
$calendarSettings['work_time_end']))
            {
                
$time explode('.'$calendarSettings['work_time_end']);
                
$endSeconds $time[0] * 3600;
                if (!empty(
$time[1]))
                    
$endSeconds += $time[1] * 60;
            }
            static::
$startWorkDay $startSeconds;
            static::
$endWorkDay $endSeconds;
        }
        return [static::
$startWorkDay, static::$endWorkDay];
    }