SyntaxFix
Write A Post
Hire A Developer
Questions
all(getattr(someTime,x)==getattr(today(),x) for x in ['year','month','day'])
One should compare using .date(), but I leave this method as an example in case one wanted to, for example, compare things by month or by minute, etc.
.date()