carleton-pathways/bot

Parse time

Closed this issue · 0 comments

Take in the times of the course and return an dictionary with start_time and end_time. Use python date module to store. I think you might be able to create times using the datetime module like this start_time = time(hour, minute, second, microsecond).

Screen Shot 2023-05-01 at 11 38 00 AM

Output could be something like this, modify as you see fit:

{
"start_time": time(hour, minute, second, microsecond),
"end_time": time(hour, minute, second, microsecond)
}

And you would pass in the hour minute second so that it then creates a time object