伪代码解决方案可能类似于以下内容。
onSameWorkDay? if yes simple date comparison if no days = find number of whole work days between the two dates dayToMin = days * 8 * 60 minDay1 = find minutes between specified start time and end of day1 minDay2 = find minutes between start of final day and specified end time totalTime = dayToMin + minDay1 + minDay2



