# Loop through all days between start and end and add the start
# Loop through all days between start and end and add the start
# and end of the business hours this day.
# and end of the business hours this day.
if {$debug_p}{ append debug_html "<li>Starting to go loop through julian dates from ticket_creation_julian=$ticket_creation_julian to now_julian=$now_julian ([im_date_julian_to_ansi $ticket_creation_julian] to [im_date_julian_to_ansi $now_julian]\n"}
if {$debug_p}{ append debug_html "<li>Starting to loop through julian dates from ticket_creation_julian=$ticket_creation_julian to now_julian=$now_julian ([im_date_julian_to_ansi $ticket_creation_julian] to [im_date_julian_to_ansi $now_julian]\n"}
for {set j $ticket_creation_julian}{$j < $now_julian}{incr j}{
for {set j $ticket_creation_julian}{$j < $now_julian}{incr j}{
# Get the service hours per Day Of Week (0=Su, 1=mo, 6=Sa)
# Get the service hours per Day Of Week (0=Su, 1=mo, 6=Sa)