Time Test

Prompt

Write a Python function parse_iso8601(date_str) that parses a given ISO 8601 string into a UTC datetime object without using third-party libraries like dateutil. Handle leap years, local timezone offsets (+02:00), and 'Z' UTC markers. Return clean code with edge-case unit tests.

Drag to resize

Response not available

Drag to resize