Sign inSign up free

1455. Days Until Expiry, Across Time Zones

medium 20 XP ~12 minHands-on lab Pro

/home/student/certs/cert_days.py EXPIRES [--now NOW] prints how many whole days are left before a certificate expires. Times are ISO 8601 with an offset, like 2026-12-01T05:00:00+02:00 or 2026-12-01T03:00:00Z. --now (same format) defaults to the current time. Teams in different time zones get different, wrong answers.

This is a Pro problem

Pro unlocks every lab and quiz, all roadmaps and a full daily plan.

Unlock with Pro

Part of Python for DevOps. Next step: Make the Failing Tests Pass

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Pro lab

Upgrade to open a machine for this problem.

See Pro