blob: b9ce5d4e5eac40464762afa6cbaf1cc23dc130c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
from __future__ import annotations
from datetime import date
from datetime import datetime
from datetime import time
class Duration:
years: int = 0
months: int = 0
weeks: int = 0
days: int = 0
remaining_days: int = 0
hours: int = 0
minutes: int = 0
seconds: int = 0
remaining_seconds: int = 0
microseconds: int = 0
def parse_iso8601(
text: str,
) -> datetime | date | time | Duration: ...
|