Answers for "check if a the time is 24 hours older python"

0

check if a the time is 24 hours older python

from datetime import datetime, timedelta

if (datetime.utcnow() - last_updated) > timedelta(1): 
    # more than 24 hours passed
Posted by: Guest on June-08-2020

Code answers related to "check if a the time is 24 hours older python"

Python Answers by Framework

Browse Popular Code Answers by Language