d14 · Minutes since a timestamp (~5 min)
Numbers, missing values, time. Edit drills.py. Standard library only; no model calls, no API key.
def minutes_since(timestamp, now):
Whole minutes from an ISO 8601 log timestamp to now, rounded down.
timestamp ends in "Z", has an offset like "+09:00", or has no zone (treat it as UTC). now is a timezone-aware datetime. Must also work on Python 3.10, where datetime.fromisoformat rejects a trailing "Z".
Failure messages are enough to go on, so leave the tests unread until you submit.