protected function uptimeInSeconds($date)
    {
        return
            (isset($date['up_days']) ? $date['up_days'] * 24 * 60 : 0) +
            (isset($date['up_hours']) ? $date['up_hours'] * 60 : 0) +
            (isset($date['up_minutes']) ? $date['up_minutes'] : 0);
    }
protected function uptimeInSeconds($date)
    {
        return
            (isset($date['up_days']) ? $date['up_days'] * 24 * 60 : 0) +
            (isset($date['up_hours']) ? $date['up_hours'] * 60 : 0) +
            (isset($date['up_minutes']) ? $date['up_minutes'] : 0);
    }
protected function uptimeInSeconds ( $ date ) { return ( isset ( $ date [ 'up_days' ] ) ? $ date [ 'up_days' ] * 24 * 60 : 0 ) + ( isset ( $ date [ 'up_hours' ] ) ? $ date [ 'up_hours' ] * 60 : 0 ) + ( isset ( $ date [ 'up_minutes' ] ) ? $ date [ 'up_minutes' ] : 0 ) ; }
Convert uptime to seconds.

@param $date
@return int
Convert uptime to seconds .