SyntaxFix
Write A Post
Hire A Developer
Questions
Oldest:
oldest = min(datetimes)
Youngest before now:
now = datetime.datetime.now(pytz.utc) youngest = max(dt for dt in datetimes if dt < now)