Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #time #hours #older #python
ADD COMMENT
Topic
Name
8+3 =