Parse time
Closed this issue · 0 comments
kunwar45 commented
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)
.
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