mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2024-11-07 18:40:13 +03:00
11 lines
360 B
Python
11 lines
360 B
Python
'''
|
|
This file contains the logic for generating the schedule of water breaks.
|
|
'''
|
|
from datetime import timedelta
|
|
def generate_schedule(start_time, end_time, interval):
|
|
schedule = []
|
|
current_time = start_time
|
|
while current_time < end_time:
|
|
schedule.append(current_time)
|
|
current_time += timedelta(minutes=interval)
|
|
return schedule |