Answer the question
In order to leave comments, you need to log in
How to assign tomorrow's date and specific time to a variable in Python?
Hello gentlemen! More recently, namely 10 hours ago, I began to slowly understand Python. I figured out many points and even wrote one script out of the three needed. Everything seems to be going smoothly, but I just ran into a problem and not only can’t google it, it doesn’t even work out to compose a request so that the word “idiot” doesn’t flash through my head. For this, do not scold if the question is such to yourself.
And so closer to the point:
There is, let's say, a certain variable time=02:00 and a variable day=1. Based on this, I somehow need to make it so that I get a date where today's date + day and with time time. That is, today, let's say the date is: 2016-01-01, but I'm interested in: 2016-01-02 02:00 what does it have to do with unixtime. Experts please tell me how this can be solved.
+ Bonus question, how to compile an exe file using visual basic.
Answer the question
In order to leave comments, you need to log in
import time
from datetime import date, timedelta, datetime
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question