Periksa apakah waktu 24 jam lebih tua Python

from datetime import datetime, timedelta

if (datetime.utcnow() - last_updated) > timedelta(1): 
    # more than 24 hours passed
Itchy Impala