Leanpub now requires a $19 Reader Membership to download free books
leanpub.com4 pointsby jeffbr131 comments
(datetime.now() - timedelta(hours=1)) <= event_datetime
Checking whether event_datetime is within May of the current year is a bit more involved, but you may not need to convert everything to a date (would have to check in an interpreter): date.today().replace(month=5, day=1) <= event_datetime.date() <= date.today().replace(month=5, day=31)
The point is that the language already has good support for sensible time operations, but it's parsing is weak. And there's Arrow for that[2]!