Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Depends on what format you are recording in?
If the recorded time means time.time()
Then the condition for checking can be done like this:
#Допустим K это время что сохраненно в файле
if (time.time()-K) > 60 * 10:
from datetime import datetime
date_x = datetime.fromtimestamp(1620471076) # твоя изначальная дата
date_y = datetime.now()
diff = (date_y - date_x).total_seconds()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question