# creates an event that lasts the length of the class
service=get_calendar_service()
dt_now=datetime.now().date()
dayOffset=0
ifd=="Mo":
dayOffset=0
elifd=="Tu":
dayOffset=1
elifd=="We":
dayOffset=2
elifd=="Th":
dayOffset=3
else:
dayOffset=4
# using 11/1/21 as the date to start the calendar on because 11/1/21 is a monday and thus can use the days the class is taught on to determine the day offset