I have to create a two slot based on the current time assume that current time is 11:25 so based on the current time i have to create two slot for 30 minutes of time period which suppose to be 11:00 to 11:30 and another one is 11:30 to 12:00 and these slot should be dynamic so if the time is 12:20 then my new slot should be 12:00 to 12:30 and 12:30 to 1:00 only two slots using python.
I am newbie to python any help would be appreciated.
todayDate = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print(todayDate)
currentTime = datetime.now()
now= 30
As I told i am newbie to python i have tried this much and stuck to logic.