Back to articles
September 18, 2024

Python get LastModified date

for page in page_iterator['Contents']:  
  if page['LastModified'] <= utc.localize(datetime.datetime.now()) - datetime.timedelta(days=1):  
    print('Object is less than one day old')
Loading comments...