I am using a time.struct_time to set up the date and time and I want to add to the next day using a python script.
I am using following code:
date_1 = "31/08/2017 10:30PM"
time_1 = time.strptime(date_1, '%d/%m/%Y %I:%M%p')
Output:
time.struct_time(tm_year=2017, tm_mon=8, tm_mday=31, tm_hour=22, tm_min=30, tm_sec=0, tm_wday=3, tm_yday=243, tm_isdst=-1)
Now I want to add 1 day to this date. I used the following code:
time.struct_time(tm_year=2017, tm_mon=9, tm_mday=1, tm_hour=22, tm_min=30, tm_sec=0, tm_wday=3, tm_yday=243, tm_isdst=-1)
I am new on this, so can you please show me an example how I could add to the next day date using with my code?